Skip to main content

LabelerCode

Enum LabelerCode 

Source
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

Source§

fn to_matter_code(&self) -> MatterCode

Converts this typed code to the untyped MatterCode.
Source§

fn as_str(&self) -> &'static str

Returns the canonical Base64 string representation of this code.
Source§

fn get_sizage(&self) -> Sizage

Returns the Sizage descriptor for this code.
Source§

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>

Available on crate feature alloc only.
Returns a placeholder qb64 string of this code’s full character width, filled with DUMMY_CHAR. Read more
Source§

impl Clone for LabelerCode

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for LabelerCode

Source§

impl Debug for LabelerCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LabelerCode

Source§

impl From<LabelerCode> for MatterCode

Source§

fn from(code: LabelerCode) -> Self

Converts to this type from the input type.
Source§

impl Hash for LabelerCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for LabelerCode

Source§

fn eq(&self, other: &LabelerCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LabelerCode

Source§

impl TryFrom<MatterCode> for LabelerCode

Source§

type Error = ValidationError

The type returned in the event of a conversion error.
Source§

fn try_from(code: MatterCode) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.