pub struct BtfSection(/* private fields */);Implementations§
Source§impl BtfSection
impl BtfSection
Sourcepub fn resolve_ids_by_name(&self, name: &str) -> Result<Vec<u32>>
pub fn resolve_ids_by_name(&self, name: &str) -> Result<Vec<u32>>
Find a list of BTF ids with a given name.
Using an empty name ("") resolves anonymous ids.
Sourcepub fn resolve_type_by_id(&self, id: u32) -> Result<Type>
pub fn resolve_type_by_id(&self, id: u32) -> Result<Type>
Find a BTF type with a given id.
Sourcepub fn resolve_types_by_name(&self, name: &str) -> Result<Vec<Type>>
pub fn resolve_types_by_name(&self, name: &str) -> Result<Vec<Type>>
Find a list of BTF types with a given name.
Using an empty name ("") resolves anonymous types.
Sourcepub fn type_id_range(&self) -> (u32, u32)
pub fn type_id_range(&self) -> (u32, u32)
Return the range of the type ids contained in this section in the (start, end) form (“start” and “end” ids are included).
Auto Trait Implementations§
impl !RefUnwindSafe for BtfSection
impl !UnwindSafe for BtfSection
impl Freeze for BtfSection
impl Send for BtfSection
impl Sync for BtfSection
impl Unpin for BtfSection
impl UnsafeUnpin for BtfSection
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