ExternalSourceKind in rustc_span - Rust (original) (raw)
Enum ExternalSourceKind
pub enum ExternalSourceKind {
Present(Arc<String>),
AbsentOk,
AbsentErr,
}
Expand description
The state of the lazy external source loading mechanism of a SourceFile
.
The external source has been loaded already.
No attempt has been made to load the external source.
A failed attempt has been made to load the external source.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Present
: 8 bytesAbsentOk
: 0 bytesAbsentErr
: 0 bytes