pub struct EnumSpecId(pub u32);Expand description
Identifies one enum specifier in TranslationUnit::enums.
See RecordSpecId, which this is the enumeration’s counterpart of.
Tuple Fields§
§0: u32Implementations§
Source§impl EnumSpecId
impl EnumSpecId
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
The index into TranslationUnit::enums.
Trait Implementations§
Source§impl Clone for EnumSpecId
impl Clone for EnumSpecId
impl Copy for EnumSpecId
Source§impl Debug for EnumSpecId
impl Debug for EnumSpecId
impl Eq for EnumSpecId
Source§impl Hash for EnumSpecId
impl Hash for EnumSpecId
Source§impl Ord for EnumSpecId
impl Ord for EnumSpecId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EnumSpecId
impl PartialEq for EnumSpecId
Source§impl PartialOrd for EnumSpecId
impl PartialOrd for EnumSpecId
impl StructuralPartialEq for EnumSpecId
Auto Trait Implementations§
impl Freeze for EnumSpecId
impl RefUnwindSafe for EnumSpecId
impl Send for EnumSpecId
impl Sync for EnumSpecId
impl Unpin for EnumSpecId
impl UnsafeUnpin for EnumSpecId
impl UnwindSafe for EnumSpecId
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