pub struct Enumerant { /* private fields */ }
Expand description
An enumerant, with generics applied. (Generics may affect types of annotations.)
Implementations§
source§impl Enumerant
impl Enumerant
pub fn get_containing_enum(self) -> EnumSchema
pub fn get_ordinal(self) -> u16
pub fn get_proto(self) -> Reader<'static>
pub fn get_annotations(self) -> Result<AnnotationList>
Trait Implementations§
source§impl IndexMove<u16, Enumerant> for EnumerantList
impl IndexMove<u16, Enumerant> for EnumerantList
fn index_move(&self, index: u16) -> Enumerant
impl Copy for Enumerant
Auto Trait Implementations§
impl Freeze for Enumerant
impl !RefUnwindSafe for Enumerant
impl !Send for Enumerant
impl !Sync for Enumerant
impl Unpin for Enumerant
impl !UnwindSafe for Enumerant
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