Struct repc::layout::TypeLayout [−][src]
The computed layout of a type.
Fields
size_bits: u64
The size of the type in bits.
This is the value returned by sizeof
and C and std::mem::size_of
in Rust
(but in bits instead of bytes). This is a multiple of pointer_alignment_bits
.
field_alignment_bits: u64
The alignment of the type, in bits, when used as a field in a record.
This is usually the value returned by _Alignof
in C, but there are some edge
cases in GCC where _Alignof
returns a smaller value.
pointer_alignment_bits: u64
The alignment, in bits, of valid pointers to this type.
This is the value returned by std::mem::align_of
in Rust
(but in bits instead of bytes). size_bits
is a multiple of this value.
required_alignment_bits: u64
The required alignment of the type in bits.
This value is only used by MSVC targets. It is 8 on all other
targets. On MSVC targets, this value restricts the effects of #pragma pack
except
in some cases involving bit-fields.
Trait Implementations
impl Clone for TypeLayout
[src]
pub fn clone(&self) -> TypeLayout
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TypeLayout
[src]
impl Debug for TypeLayout
[src]
impl Default for TypeLayout
[src]
pub fn default() -> TypeLayout
[src]
impl Eq for TypeLayout
[src]
impl Into<()> for TypeLayout
[src]
impl Layout for TypeLayout
[src]
type TypeLayout = TypeLayout
The type used to encode the layout of the type itself.
type FieldLayout = FieldLayout
The type used to encode the layout of a field in a record.
type OpaqueLayout = TypeLayout
The type used to encode the layout of an opaque type.
impl PartialEq<TypeLayout> for TypeLayout
[src]
pub fn eq(&self, other: &TypeLayout) -> bool
[src]
pub fn ne(&self, other: &TypeLayout) -> bool
[src]
impl StructuralEq for TypeLayout
[src]
impl StructuralPartialEq for TypeLayout
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeLayout
[src]
impl Send for TypeLayout
[src]
impl Sync for TypeLayout
[src]
impl Unpin for TypeLayout
[src]
impl UnwindSafe for TypeLayout
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,