#[non_exhaustive]pub struct ExternRef {
pub name: String,
pub extension: String,
pub edge: EdgeKind,
pub producer: Option<String>,
}Expand description
One --extern argument: a dependency, and what the consumer needs of it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name the consumer knows the dependency by.
extension: StringThe artifact’s file extension, kept for diagnostics.
edge: EdgeKindWhat the consumer needs before it can start: .rmeta is metadata, anything else is a
complete build.
producer: Option<String>The producer’s -C extra-filename, including its leading dash, taken from the artifact’s
file name. Edges resolve by this rather than by name, because names are ambiguous across
versions and across host and target instances of one package.
Trait Implementations§
impl Eq for ExternRef
impl StructuralPartialEq for ExternRef
Auto Trait Implementations§
impl Freeze for ExternRef
impl RefUnwindSafe for ExternRef
impl Send for ExternRef
impl Sync for ExternRef
impl Unpin for ExternRef
impl UnsafeUnpin for ExternRef
impl UnwindSafe for ExternRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more