pub struct ReprOptions<'tcx> {
pub int_specified: bool,
pub typ: Ty<'tcx>,
pub align: Option<Align>,
pub pack: Option<Align>,
pub flags: ReprFlags,
}Expand description
Reflects [rustc_abi::ReprOptions].
Fields§
§int_specified: boolWhether an explicit integer representation was specified.
typ: Ty<'tcx>The actual discriminant type resulting from the representation options.
align: Option<Align>§pack: Option<Align>§flags: ReprFlagsTrait Implementations§
Source§impl<'tcx> Clone for ReprOptions<'tcx>
impl<'tcx> Clone for ReprOptions<'tcx>
Source§fn clone(&self) -> ReprOptions<'tcx>
fn clone(&self) -> ReprOptions<'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 ReprOptions<'tcx>
impl<'tcx> Debug for ReprOptions<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ReprOptions<'tcx>> for ReprOptions
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ReprOptions<'tcx>> for ReprOptions
fn sinto(&self, s: &S) -> ReprOptions<'tcx>
Auto Trait Implementations§
impl<'tcx> DynSend for ReprOptions<'tcx>
impl<'tcx> DynSync for ReprOptions<'tcx>
impl<'tcx> Freeze for ReprOptions<'tcx>
impl<'tcx> RefUnwindSafe for ReprOptions<'tcx>
impl<'tcx> Send for ReprOptions<'tcx>
impl<'tcx> Sync for ReprOptions<'tcx>
impl<'tcx> Unpin for ReprOptions<'tcx>
impl<'tcx> UnsafeUnpin for ReprOptions<'tcx>
impl<'tcx> UnwindSafe for ReprOptions<'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