Struct capnp::schema::EnumSchema
source · pub struct EnumSchema { /* private fields */ }
Expand description
An enum, with generics applied. (Generics may affect types of annotations.)
Implementations§
source§impl EnumSchema
impl EnumSchema
pub fn new(raw: RawEnumSchema) -> Self
pub fn get_proto(self) -> Reader<'static>
pub fn get_enumerants(self) -> Result<EnumerantList>
pub fn get_annotations(self) -> Result<AnnotationList>
Trait Implementations§
source§impl Clone for EnumSchema
impl Clone for EnumSchema
source§fn clone(&self) -> EnumSchema
fn clone(&self) -> EnumSchema
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 From<RawEnumSchema> for EnumSchema
impl From<RawEnumSchema> for EnumSchema
source§fn from(re: RawEnumSchema) -> EnumSchema
fn from(re: RawEnumSchema) -> EnumSchema
Converts to this type from the input type.
impl Copy for EnumSchema
Auto Trait Implementations§
impl Freeze for EnumSchema
impl !RefUnwindSafe for EnumSchema
impl !Send for EnumSchema
impl !Sync for EnumSchema
impl Unpin for EnumSchema
impl !UnwindSafe for EnumSchema
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
)