pub enum NumberCode {
Short,
Long,
Tall,
Big,
Large,
Great,
Vast,
}Available on crate feature
core only.Expand description
CESR codes for unsigned integer primitives, ordered from smallest to largest.
Variants§
Short
2-byte unsigned integer (M).
Long
4-byte unsigned integer (0H).
Tall
5-byte unsigned integer (R).
Big
8-byte unsigned integer (N).
Large
11-byte unsigned integer (S).
Great
14-byte unsigned integer (T).
Vast
17-byte unsigned integer (U).
Implementations§
Source§impl NumberCode
impl NumberCode
Trait Implementations§
Source§impl CesrCode for NumberCode
impl CesrCode for NumberCode
Source§fn to_matter_code(&self) -> MatterCode
fn to_matter_code(&self) -> MatterCode
Converts this typed code to the untyped
MatterCode.Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Returns the canonical Base64 string representation of this code.
Source§fn get_sizage(&self) -> Sizage
fn get_sizage(&self) -> Sizage
Returns the
Sizage descriptor for this code.Source§fn raw_size(&self) -> Result<usize, ValidationError>
fn raw_size(&self) -> Result<usize, ValidationError>
Returns the expected raw byte size for this code. Read more
Source§fn placeholder(&self) -> Result<String, ValidationError>
fn placeholder(&self) -> Result<String, ValidationError>
Available on crate feature
alloc only.Returns a placeholder qb64 string of this code’s full character width,
filled with
DUMMY_CHAR. Read moreSource§impl Clone for NumberCode
impl Clone for NumberCode
Source§fn clone(&self) -> NumberCode
fn clone(&self) -> NumberCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NumberCode
Source§impl Debug for NumberCode
impl Debug for NumberCode
impl Eq for NumberCode
Source§impl From<NumberCode> for MatterCode
impl From<NumberCode> for MatterCode
Source§fn from(code: NumberCode) -> Self
fn from(code: NumberCode) -> Self
Converts to this type from the input type.
Source§impl Hash for NumberCode
impl Hash for NumberCode
Source§impl PartialEq for NumberCode
impl PartialEq for NumberCode
impl StructuralPartialEq for NumberCode
Source§impl TryFrom<MatterCode> for NumberCode
impl TryFrom<MatterCode> for NumberCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for NumberCode
impl RefUnwindSafe for NumberCode
impl Send for NumberCode
impl Sync for NumberCode
impl Unpin for NumberCode
impl UnsafeUnpin for NumberCode
impl UnwindSafe for NumberCode
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