Enum syntax::codemap::ExternalSource [−][src]
pub enum ExternalSource { Present(String), AbsentOk, AbsentErr, Unneeded, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The state of the lazy external source loading mechanism of a FileMap.
Variants
Present(String)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The external source has been loaded already.
AbsentOk
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
No attempt has been made to load the external source.
AbsentErr
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A failed attempt has been made to load the external source.
Unneeded
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
No external source has to be loaded, since the FileMap represents a local crate.
Methods
impl ExternalSource
[src]
impl ExternalSource
pub fn is_absent(&self) -> bool
[src]
pub fn is_absent(&self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_source(&self) -> Option<&str>
[src]
pub fn get_source(&self) -> Option<&str>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Clone for ExternalSource
[src]
impl Clone for ExternalSource
fn clone(&self) -> ExternalSource
[src]
fn clone(&self) -> ExternalSource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for ExternalSource
[src]
impl Eq for ExternalSource
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl PartialEq<ExternalSource> for ExternalSource
[src]
impl PartialEq<ExternalSource> for ExternalSource
fn eq(&self, other: &ExternalSource) -> bool
[src]
fn eq(&self, other: &ExternalSource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExternalSource) -> bool
[src]
fn ne(&self, other: &ExternalSource) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ExternalSource
impl Send for ExternalSource
impl Sync for ExternalSource
impl Sync for ExternalSource