pub enum PrimitiveType {
Char,
Int8,
Int16,
Int32,
Int64,
Uint8,
Uint16,
Uint32,
Uint64,
Float,
Double,
}Expand description
SBE primitive types.
Variants§
Char
Single character (1 byte).
Int8
Signed 8-bit integer.
Int16
Signed 16-bit integer.
Int32
Signed 32-bit integer.
Int64
Signed 64-bit integer.
Uint8
Unsigned 8-bit integer.
Uint16
Unsigned 16-bit integer.
Uint32
Unsigned 32-bit integer.
Uint64
Unsigned 64-bit integer.
Float
32-bit floating point.
Double
64-bit floating point.
Implementations§
Source§impl PrimitiveType
impl PrimitiveType
Sourcepub fn from_sbe_name(name: &str) -> Option<Self>
pub fn from_sbe_name(name: &str) -> Option<Self>
Parses a primitive type from its SBE name.
Sourcepub const fn is_unsigned(&self) -> bool
pub const fn is_unsigned(&self) -> bool
Returns true if this is an unsigned integer type.
Trait Implementations§
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a duplicate 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 PrimitiveType
impl Debug for PrimitiveType
Source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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