Struct rustc_session::config::ExternEntry [−][src]
pub struct ExternEntry {
pub location: ExternLocation,
pub is_private_dep: bool,
pub add_prelude: bool,
}Fields
location: ExternLocationis_private_dep: boolExpand description
Indicates this is a “private” dependency for the
exported_private_dependencies lint.
This can be set with the priv option like
--extern priv:name=foo.rlib.
add_prelude: boolExpand description
Add the extern entry to the extern prelude.
This can be disabled with the noprelude option like
--extern noprelude:name.
Implementations
impl ExternEntry[src]
impl ExternEntry[src]fn new(location: ExternLocation) -> ExternEntry[src]
pub fn files(&self) -> Option<impl Iterator<Item = &CanonicalizedPath>>[src]
Trait Implementations
impl Clone for ExternEntry[src]
impl Clone for ExternEntry[src]fn clone(&self) -> ExternEntry[src]
fn clone(&self) -> ExternEntry[src]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)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExternEntry
impl Send for ExternEntry
impl Sync for ExternEntry
impl Unpin for ExternEntry
impl UnwindSafe for ExternEntry
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more