pub struct Enumerator {
pub name: String,
pub rust_name: String,
pub ty: Ty,
pub value: i128,
pub range: SourceRange,
}Expand description
One enum constant.
Fields§
§name: StringThe name as written in C.
rust_name: StringThe name of the generated Rust const, already made unique.
ty: TyThe constant’s type: int, or the fixed underlying type a C23 enum
was given.
value: i128The value.
range: SourceRangeWhere it was written.
Trait Implementations§
Source§impl Clone for Enumerator
impl Clone for Enumerator
Auto Trait Implementations§
impl Freeze for Enumerator
impl RefUnwindSafe for Enumerator
impl Send for Enumerator
impl Sync for Enumerator
impl Unpin for Enumerator
impl UnsafeUnpin for Enumerator
impl UnwindSafe for Enumerator
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