pub struct CandidateId(/* private fields */);Expand description
Identifies one physical candidate within a Source implementation.
Candidate identities are scoped to the source that returns them. The same identity returned for different requested module names tells the loader that both names refer to the same physical document. An identity must stay associated with the same origin and content for the duration of a load.
Implementations§
Trait Implementations§
Source§impl Clone for CandidateId
impl Clone for CandidateId
Source§fn clone(&self) -> CandidateId
fn clone(&self) -> CandidateId
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 CandidateId
impl Debug for CandidateId
Source§impl Display for CandidateId
impl Display for CandidateId
impl Eq for CandidateId
Source§impl From<&str> for CandidateId
impl From<&str> for CandidateId
Source§impl From<String> for CandidateId
impl From<String> for CandidateId
Source§impl Hash for CandidateId
impl Hash for CandidateId
Source§impl Ord for CandidateId
impl Ord for CandidateId
Source§fn cmp(&self, other: &CandidateId) -> Ordering
fn cmp(&self, other: &CandidateId) -> 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 CandidateId
impl PartialEq for CandidateId
Source§impl PartialOrd for CandidateId
impl PartialOrd for CandidateId
impl StructuralPartialEq for CandidateId
Auto Trait Implementations§
impl Freeze for CandidateId
impl RefUnwindSafe for CandidateId
impl Send for CandidateId
impl Sync for CandidateId
impl Unpin for CandidateId
impl UnsafeUnpin for CandidateId
impl UnwindSafe for CandidateId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.