pub struct EnumMember<'btf> {
pub name: Option<&'btf OsStr>,
pub value: i32,
}
Expand description
A member of an Enum
Fields§
§name: Option<&'btf OsStr>
The name of this enum variant.
value: i32
The numeric value of this enum variant.
Trait Implementations§
Source§impl<'btf> Clone for EnumMember<'btf>
impl<'btf> Clone for EnumMember<'btf>
Source§fn clone(&self) -> EnumMember<'btf>
fn clone(&self) -> EnumMember<'btf>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'btf> Debug for EnumMember<'btf>
impl<'btf> Debug for EnumMember<'btf>
impl<'btf> Copy for EnumMember<'btf>
Auto Trait Implementations§
impl<'btf> Freeze for EnumMember<'btf>
impl<'btf> RefUnwindSafe for EnumMember<'btf>
impl<'btf> Send for EnumMember<'btf>
impl<'btf> Sync for EnumMember<'btf>
impl<'btf> Unpin for EnumMember<'btf>
impl<'btf> UnwindSafe for EnumMember<'btf>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)