pub struct TypeInformation { /* private fields */ }Expand description
Type information acquired from the BTF data
Implementations§
Source§impl TypeInformation
impl TypeInformation
Sourcepub fn get(&self) -> &BTreeMap<u32, TypeVariant>
pub fn get(&self) -> &BTreeMap<u32, TypeVariant>
Returns the entire type map
Sourcepub fn id_of(&self, type_name: &str) -> Option<u32>
pub fn id_of(&self, type_name: &str) -> Option<u32>
Returns the type id for the given type name
Sourcepub fn from_id(&self, tid: u32) -> Option<TypeVariant>
pub fn from_id(&self, tid: u32) -> Option<TypeVariant>
Returns the type object for the given type id
Sourcepub fn pointee_tid(&self, tid: u32) -> BTFResult<u32>
pub fn pointee_tid(&self, tid: u32) -> BTFResult<u32>
Returns the pointee type id
Auto Trait Implementations§
impl Freeze for TypeInformation
impl RefUnwindSafe for TypeInformation
impl Send for TypeInformation
impl Sync for TypeInformation
impl Unpin for TypeInformation
impl UnwindSafe for TypeInformation
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