pub enum BuiltinTraitData<'tcx> {
Drop(DropData<'tcx>),
Other,
}
Variants§
Drop(DropData<'tcx>)
A virtual Drop
implementation.
Drop
doesn’t work like a real trait but we want to pretend it does. If a type has a
user-defined impl Drop for X
we just use the Concrete
variant, but if it doesn’t we use
this variant to supply the data needed to know what code will run on drop.
Other
Some other builtin trait.
Trait Implementations§
Source§impl<'tcx> Clone for BuiltinTraitData<'tcx>
impl<'tcx> Clone for BuiltinTraitData<'tcx>
Source§fn clone(&self) -> BuiltinTraitData<'tcx>
fn clone(&self) -> BuiltinTraitData<'tcx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'tcx> Debug for BuiltinTraitData<'tcx>
impl<'tcx> Debug for BuiltinTraitData<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BuiltinTraitData> for BuiltinTraitData<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BuiltinTraitData> for BuiltinTraitData<'tcx>
fn sinto(&self, s: &S) -> BuiltinTraitData
Auto Trait Implementations§
impl<'tcx> Freeze for BuiltinTraitData<'tcx>
impl<'tcx> !RefUnwindSafe for BuiltinTraitData<'tcx>
impl<'tcx> Send for BuiltinTraitData<'tcx>
impl<'tcx> Sync for BuiltinTraitData<'tcx>
impl<'tcx> Unpin for BuiltinTraitData<'tcx>
impl<'tcx> !UnwindSafe for BuiltinTraitData<'tcx>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more