Struct rustc_hir::hir::TraitCandidate
source · [−]pub struct TraitCandidate {
pub def_id: DefId,
pub import_ids: SmallVec<[LocalDefId; 1]>,
}Fields
def_id: DefIdimport_ids: SmallVec<[LocalDefId; 1]>Trait Implementations
sourceimpl Clone for TraitCandidate
impl Clone for TraitCandidate
sourcefn clone(&self) -> TraitCandidate
fn clone(&self) -> TraitCandidate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TraitCandidate
impl Debug for TraitCandidate
sourceimpl<__D: Decoder> Decodable<__D> for TraitCandidate
impl<__D: Decoder> Decodable<__D> for TraitCandidate
sourceimpl<__E: Encoder> Encodable<__E> for TraitCandidate
impl<__E: Encoder> Encodable<__E> for TraitCandidate
sourceimpl<HirCtx: HashStableContext> HashStable<HirCtx> for TraitCandidate
impl<HirCtx: HashStableContext> HashStable<HirCtx> for TraitCandidate
fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher)
Auto Trait Implementations
impl RefUnwindSafe for TraitCandidate
impl Send for TraitCandidate
impl Sync for TraitCandidate
impl Unpin for TraitCandidate
impl UnwindSafe for TraitCandidate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes