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