#[non_exhaustive]pub enum Type {
Show 20 variants
Void,
Int(Int),
Ptr(Ptr),
Array(Array),
Struct(Struct),
Union(Union),
Enum(Enum),
Fwd(Fwd),
Typedef(Typedef),
Volatile(Volatile),
Const(Const),
Restrict(Restrict),
Func(Func),
FuncProto(FuncProto),
Var(Var),
Datasec(Datasec),
Float(Float),
DeclTag(DeclTag),
TypeTag(TypeTag),
Enum64(Enum64),
}Expand description
Rust representation of BTF types. Each type then contains its own specific data and provides helpers to access it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Void
Int(Int)
Ptr(Ptr)
Array(Array)
Struct(Struct)
Union(Union)
Enum(Enum)
Fwd(Fwd)
Typedef(Typedef)
Volatile(Volatile)
Const(Const)
Restrict(Restrict)
Func(Func)
FuncProto(FuncProto)
Var(Var)
Datasec(Datasec)
Float(Float)
DeclTag(DeclTag)
TypeTag(TypeTag)
Enum64(Enum64)
Implementations§
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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