#[repr(C)]pub struct EnumConstInfo<'a> {
pub name: &'a str,
pub value: u64,
}Expand description
One enum constant, a lifetime-generic shared struct with a borrowed name, the enum twin
of MemberInfo.
Fields§
§name: &'a strThe constant’s name, borrowed for the call.
value: u64The constant’s value.
Trait Implementations§
Source§impl<'a> ExternType for EnumConstInfo<'a>
impl<'a> ExternType for EnumConstInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnumConstInfo<'a>
impl<'a> RefUnwindSafe for EnumConstInfo<'a>
impl<'a> Send for EnumConstInfo<'a>
impl<'a> Sync for EnumConstInfo<'a>
impl<'a> Unpin for EnumConstInfo<'a>
impl<'a> UnsafeUnpin for EnumConstInfo<'a>
impl<'a> UnwindSafe for EnumConstInfo<'a>
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