pub struct ResolutionUnit { /* private fields */ }Expand description
One compilation context a report resolves names inside.
Rust maps each unit to one Cargo target instance. key is the stable
structural identity a consumer joins on; name is what the language calls
the unit.
Implementations§
Source§impl ResolutionUnit
impl ResolutionUnit
Sourcepub fn id(&self) -> ResolutionUnitId
pub fn id(&self) -> ResolutionUnitId
This unit’s identifier.
Trait Implementations§
Source§impl Clone for ResolutionUnit
impl Clone for ResolutionUnit
Source§fn clone(&self) -> ResolutionUnit
fn clone(&self) -> ResolutionUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolutionUnit
impl Debug for ResolutionUnit
Source§impl<'de> Deserialize<'de> for ResolutionUnit
impl<'de> Deserialize<'de> for ResolutionUnit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResolutionUnit
Source§impl PartialEq for ResolutionUnit
impl PartialEq for ResolutionUnit
Source§impl Serialize for ResolutionUnit
impl Serialize for ResolutionUnit
impl StructuralPartialEq for ResolutionUnit
Auto Trait Implementations§
impl Freeze for ResolutionUnit
impl RefUnwindSafe for ResolutionUnit
impl Send for ResolutionUnit
impl Sync for ResolutionUnit
impl Unpin for ResolutionUnit
impl UnsafeUnpin for ResolutionUnit
impl UnwindSafe for ResolutionUnit
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