pub enum TexterCode {
Bytes_L0,
Bytes_L1,
Bytes_L2,
BytesBig_L0,
BytesBig_L1,
BytesBig_L2,
}Available on crate feature
core only.Expand description
CESR codes for variable-length byte string primitives.
Variants§
Bytes_L0
Variable-length byte string (lead 0).
Bytes_L1
Variable-length byte string (lead 1).
Bytes_L2
Variable-length byte string (lead 2).
BytesBig_L0
Variable-length big byte string (lead 0).
BytesBig_L1
Variable-length big byte string (lead 1).
BytesBig_L2
Variable-length big byte string (lead 2).
Trait Implementations§
Source§impl CesrCode for TexterCode
impl CesrCode for TexterCode
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 TexterCode
impl Clone for TexterCode
Source§fn clone(&self) -> TexterCode
fn clone(&self) -> TexterCode
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 TexterCode
Source§impl Debug for TexterCode
impl Debug for TexterCode
impl Eq for TexterCode
Source§impl From<TexterCode> for MatterCode
impl From<TexterCode> for MatterCode
Source§fn from(code: TexterCode) -> Self
fn from(code: TexterCode) -> Self
Converts to this type from the input type.
Source§impl Hash for TexterCode
impl Hash for TexterCode
Source§impl PartialEq for TexterCode
impl PartialEq for TexterCode
impl StructuralPartialEq for TexterCode
Source§impl TryFrom<MatterCode> for TexterCode
impl TryFrom<MatterCode> for TexterCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for TexterCode
impl RefUnwindSafe for TexterCode
impl Send for TexterCode
impl Sync for TexterCode
impl Unpin for TexterCode
impl UnsafeUnpin for TexterCode
impl UnwindSafe for TexterCode
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