pub enum LabelerCode {
Show 26 variants
Empty,
Tag1,
Tag2,
Tag3,
Tag4,
Tag5,
Tag6,
Tag7,
Tag8,
Tag9,
Tag10,
Tag11,
Label1,
Label2,
StrB64_L0,
StrB64_L1,
StrB64_L2,
StrB64Big_L0,
StrB64Big_L1,
StrB64Big_L2,
Bytes_L0,
Bytes_L1,
Bytes_L2,
BytesBig_L0,
BytesBig_L1,
BytesBig_L2,
}Available on crate feature
core only.Expand description
CESR codes for auto-sized tags and labels used as field names.
Variants§
Empty
Empty value.
Tag1
1-char tag.
Tag2
2-char tag.
Tag3
3-char tag.
Tag4
4-char tag.
Tag5
5-char tag.
Tag6
6-char tag.
Tag7
7-char tag.
Tag8
8-char tag.
Tag9
9-char tag.
Tag10
10-char tag.
Tag11
11-char tag.
Label1
1-byte label.
Label2
2-byte label.
StrB64_L0
Variable-length Base64 string (lead 0).
StrB64_L1
Variable-length Base64 string (lead 1).
StrB64_L2
Variable-length Base64 string (lead 2).
StrB64Big_L0
Variable-length big Base64 string (lead 0).
StrB64Big_L1
Variable-length big Base64 string (lead 1).
StrB64Big_L2
Variable-length big Base64 string (lead 2).
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 LabelerCode
impl CesrCode for LabelerCode
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 LabelerCode
impl Clone for LabelerCode
Source§fn clone(&self) -> LabelerCode
fn clone(&self) -> LabelerCode
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 LabelerCode
Source§impl Debug for LabelerCode
impl Debug for LabelerCode
impl Eq for LabelerCode
Source§impl From<LabelerCode> for MatterCode
impl From<LabelerCode> for MatterCode
Source§fn from(code: LabelerCode) -> Self
fn from(code: LabelerCode) -> Self
Converts to this type from the input type.
Source§impl Hash for LabelerCode
impl Hash for LabelerCode
Source§impl PartialEq for LabelerCode
impl PartialEq for LabelerCode
impl StructuralPartialEq for LabelerCode
Source§impl TryFrom<MatterCode> for LabelerCode
impl TryFrom<MatterCode> for LabelerCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for LabelerCode
impl RefUnwindSafe for LabelerCode
impl Send for LabelerCode
impl Sync for LabelerCode
impl Unpin for LabelerCode
impl UnsafeUnpin for LabelerCode
impl UnwindSafe for LabelerCode
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