Struct bpf_script::Type
source · Expand description
Represents a fully-qualified type.
Fields
base_type: BaseType
The concrete base type.
num_refs: u32
Number of references.
Implementations
sourceimpl Type
impl Type
sourcepub fn is_pointer(&self) -> bool
pub fn is_pointer(&self) -> bool
Convenience function for determining whether this is a pointer type or not (num_refs > 0). Makes code more clear.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more