Enum capnp::schema_capnp::ElementSize
source · #[repr(u16)]pub enum ElementSize {
Empty = 0,
Bit = 1,
Byte = 2,
TwoBytes = 3,
FourBytes = 4,
EightBytes = 5,
Pointer = 6,
InlineComposite = 7,
}
Variants§
Empty = 0
Bit = 1
Byte = 2
TwoBytes = 3
FourBytes = 4
EightBytes = 5
Pointer = 6
InlineComposite = 7
Trait Implementations§
source§impl Clone for ElementSize
impl Clone for ElementSize
source§fn clone(&self) -> ElementSize
fn clone(&self) -> ElementSize
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 Debug for ElementSize
impl Debug for ElementSize
source§impl<'a> From<ElementSize> for Reader<'a>
impl<'a> From<ElementSize> for Reader<'a>
source§fn from(e: ElementSize) -> Self
fn from(e: ElementSize) -> Self
Converts to this type from the input type.
source§impl From<ElementSize> for u16
impl From<ElementSize> for u16
source§fn from(x: ElementSize) -> u16
fn from(x: ElementSize) -> u16
Converts to this type from the input type.
source§impl Introspect for ElementSize
impl Introspect for ElementSize
source§fn introspect() -> Type
fn introspect() -> Type
Retrieves a description of the type.
source§impl PartialEq for ElementSize
impl PartialEq for ElementSize
source§fn eq(&self, other: &ElementSize) -> bool
fn eq(&self, other: &ElementSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for ElementSize
impl TryFrom<u16> for ElementSize
impl Copy for ElementSize
impl Eq for ElementSize
impl StructuralPartialEq for ElementSize
Auto Trait Implementations§
impl Freeze for ElementSize
impl RefUnwindSafe for ElementSize
impl Send for ElementSize
impl Sync for ElementSize
impl Unpin for ElementSize
impl UnwindSafe for ElementSize
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