pub struct Import<SubExpr> {
pub mode: ImportMode,
pub location: ImportTarget<SubExpr>,
pub hash: Option<Hash>,
}Expand description
Reference to an external resource
Fields§
§mode: ImportMode§location: ImportTarget<SubExpr>§hash: Option<Hash>Implementations§
Trait Implementations§
impl<SubExpr: Eq> Eq for Import<SubExpr>
impl<SubExpr> StructuralPartialEq for Import<SubExpr>
Auto Trait Implementations§
impl<SubExpr> Freeze for Import<SubExpr>where
SubExpr: Freeze,
impl<SubExpr> RefUnwindSafe for Import<SubExpr>where
SubExpr: RefUnwindSafe,
impl<SubExpr> Send for Import<SubExpr>where
SubExpr: Send,
impl<SubExpr> Sync for Import<SubExpr>where
SubExpr: Sync,
impl<SubExpr> Unpin for Import<SubExpr>where
SubExpr: Unpin,
impl<SubExpr> UnwindSafe for Import<SubExpr>where
SubExpr: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.