Struct rustc_trait_selection::traits::error_reporting::ImplCandidate
source · [−]pub struct ImplCandidate<'tcx> {
pub trait_ref: TraitRef<'tcx>,
pub similarity: CandidateSimilarity,
}Fields
trait_ref: TraitRef<'tcx>similarity: CandidateSimilarityTrait Implementations
sourceimpl<'tcx> Clone for ImplCandidate<'tcx>
impl<'tcx> Clone for ImplCandidate<'tcx>
sourcefn clone(&self) -> ImplCandidate<'tcx>
fn clone(&self) -> ImplCandidate<'tcx>
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<'tcx> Debug for ImplCandidate<'tcx>
impl<'tcx> Debug for ImplCandidate<'tcx>
impl<'tcx> Copy for ImplCandidate<'tcx>
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for ImplCandidate<'tcx>
impl<'tcx> Send for ImplCandidate<'tcx>
impl<'tcx> Sync for ImplCandidate<'tcx>
impl<'tcx> Unpin for ImplCandidate<'tcx>
impl<'tcx> !UnwindSafe for ImplCandidate<'tcx>
Blanket Implementations
sourceimpl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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.
sourcefn clone_into(&self, target: &mut T)
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: 24 bytes