Enum abi_stable::type_layout::TLData [−][src]
pub enum TLData {
Primitive(TLPrimitive),
Opaque,
Struct {
fields: TLFields,
},
Union {
fields: TLFields,
},
Enum(TLEnum),
PrefixType(TLPrefixType),
}
Expand description
The interior of the type definition, describing whether the type is a primitive/enum/struct/union and its contents.
Variants
Primitive(TLPrimitive)
Types defined in the compiler.
Tuple Fields of Primitive
0: TLPrimitive
The type can’t be inspected,and has no properties other than size/alignment.
When translated to C,this would be a struct with a single array field whose element type is the alignment in this layout, with the same byte length as this layout .
For structs.
Fields of Struct
fields: TLFields
For unions.
Fields of Union
fields: TLFields
Enum(TLEnum)
For enums.
Tuple Fields of Enum
0: TLEnum
PrefixType(TLPrefixType)
vtables and modules that can be extended in minor versions.
Tuple Fields of PrefixType
0: TLPrefixType
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TLData
impl UnwindSafe for TLData
Blanket Implementations
Mutably borrows from an owned value. Read more
type ROwned = T
type ROwned = T
The owned type, stored in RCow::Owned
type ForSelf = WithMetadata_<T, T>
type ForSelf = WithMetadata_<T, T>
This is always WithMetadata_<Self, Self>
Compares the address of self
with the address of other
. Read more
Emulates the pipeline operator, allowing method syntax in more places. Read more
The same as piped
except that the function takes &Self
Useful for functions that take &Self
instead of Self
. Read more
The same as piped
, except that the function takes &mut Self
.
Useful for functions that take &mut Self
instead of Self
. Read more
Mutates self using a closure taking self by mutable reference, passing it along the method chain. Read more
Observes the value of self, passing it along unmodified. Useful in long method chains. Read more
Performs a conversion with Into
.
using the turbofish .into_::<_>()
syntax. Read more
Performs a reference to reference conversion with AsRef
,
using the turbofish .as_ref_::<_>()
syntax. Read more
Performs a mutable reference to mutable reference conversion with AsMut
,
using the turbofish .as_mut_::<_>()
syntax. Read more
unsafe fn transmute_element<T>(
self
) -> <Self as CanTransmuteElement<T>>::TransmutedPtr where
Self: CanTransmuteElement<T>,
unsafe fn transmute_element<T>(
self
) -> <Self as CanTransmuteElement<T>>::TransmutedPtr where
Self: CanTransmuteElement<T>,
Transmutes the element type of this pointer.. Read more
type Type = T
type Type = T
This is always Self
.
Converts a value back to the original type.
Converts a mutable reference back to the original type.
Converts a box back to the original type.
Converts an Arc back to the original type. Read more
Converts an Rc back to the original type. Read more
Converts a value back to the original type.
Converts a reference back to the original type.
Converts a mutable reference back to the original type.
Converts a box back to the original type.
Converts an Arc back to the original type.
Converts an Rc back to the original type.