Enum rustc_session::config::ExternDepSpec
source · [−]Expand description
Supplied source location of a dependency - for example in a build specification file like Cargo.toml. We support several syntaxes: if it makes sense to reference a file and line, then the build system can specify that. On the other hand, it may make more sense to have an arbitrary raw string.
Variants
Raw(String)
Raw string
Json(Json)
Raw data in json format
Trait Implementations
sourceimpl Clone for ExternDepSpec
impl Clone for ExternDepSpec
sourcefn clone(&self) -> ExternDepSpec
fn clone(&self) -> ExternDepSpec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Display for ExternDepSpec
impl Display for ExternDepSpec
sourceimpl<'a> From<&'a ExternDepSpec> for ExternDepSpec
impl<'a> From<&'a ExternDepSpec> for ExternDepSpec
sourcefn from(from: &'a ExternDepSpec) -> Self
fn from(from: &'a ExternDepSpec) -> Self
Performs the conversion.
sourceimpl PartialEq<ExternDepSpec> for ExternDepSpec
impl PartialEq<ExternDepSpec> for ExternDepSpec
sourcefn eq(&self, other: &ExternDepSpec) -> bool
fn eq(&self, other: &ExternDepSpec) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ExternDepSpec) -> bool
fn ne(&self, other: &ExternDepSpec) -> bool
This method tests for !=.
impl StructuralPartialEq for ExternDepSpec
Auto Trait Implementations
impl RefUnwindSafe for ExternDepSpec
impl Send for ExternDepSpec
impl Sync for ExternDepSpec
impl Unpin for ExternDepSpec
impl UnwindSafe for ExternDepSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
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: 40 bytes
Size for each variant:
Raw: 24 bytesJson: 32 bytes