pub struct DiscriminantValue<'tcx> {
pub val: u128,
pub ty: Ty<'tcx>,
}Expand description
Reflects [ty::util::Discr]
Fields§
§val: u128§ty: Ty<'tcx>Trait Implementations§
Source§impl<'tcx> Clone for DiscriminantValue<'tcx>
impl<'tcx> Clone for DiscriminantValue<'tcx>
Source§fn clone(&self) -> DiscriminantValue<'tcx>
fn clone(&self) -> DiscriminantValue<'tcx>
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<'tcx> Debug for DiscriminantValue<'tcx>
impl<'tcx> Debug for DiscriminantValue<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantValue<'tcx>> for Discr<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantValue<'tcx>> for Discr<'tcx>
fn sinto(&self, gstate: &S) -> DiscriminantValue<'tcx>
Auto Trait Implementations§
impl<'tcx> DynSend for DiscriminantValue<'tcx>
impl<'tcx> DynSync for DiscriminantValue<'tcx>
impl<'tcx> Freeze for DiscriminantValue<'tcx>
impl<'tcx> RefUnwindSafe for DiscriminantValue<'tcx>
impl<'tcx> Send for DiscriminantValue<'tcx>
impl<'tcx> Sync for DiscriminantValue<'tcx>
impl<'tcx> Unpin for DiscriminantValue<'tcx>
impl<'tcx> UnsafeUnpin for DiscriminantValue<'tcx>
impl<'tcx> UnwindSafe for DiscriminantValue<'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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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