Struct rustc_hir::TraitCandidate
source · pub struct TraitCandidate {
pub def_id: DefId,
pub import_ids: SmallVec<[LocalDefId; 1]>,
}
Fields
def_id: DefId
import_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 moresourceimpl 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<__CTX> HashStable<__CTX> for TraitCandidatewhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for TraitCandidatewhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 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