pub struct SourceIdentity { /* private fields */ }Expand description
The canonical identity of one source in a resolved program.
The path is filesystem-canonical and the numeric id is assigned once by the compiler’s program loader; consumers must not substitute mtimes or allocations.
Implementations§
Trait Implementations§
Source§impl Clone for SourceIdentity
impl Clone for SourceIdentity
Source§fn clone(&self) -> SourceIdentity
fn clone(&self) -> SourceIdentity
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 SourceIdentity
impl Debug for SourceIdentity
impl Eq for SourceIdentity
Source§impl Hash for SourceIdentity
impl Hash for SourceIdentity
Source§impl Ord for SourceIdentity
impl Ord for SourceIdentity
Source§fn cmp(&self, other: &SourceIdentity) -> Ordering
fn cmp(&self, other: &SourceIdentity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceIdentity
impl PartialEq for SourceIdentity
Source§impl PartialOrd for SourceIdentity
impl PartialOrd for SourceIdentity
impl StructuralPartialEq for SourceIdentity
Auto Trait Implementations§
impl Freeze for SourceIdentity
impl RefUnwindSafe for SourceIdentity
impl Send for SourceIdentity
impl Sync for SourceIdentity
impl Unpin for SourceIdentity
impl UnsafeUnpin for SourceIdentity
impl UnwindSafe for SourceIdentity
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