pub enum VerserCode {
Tag7,
Tag10,
}Available on crate feature
core only.Expand description
CESR codes for version/protocol encoding primitives.
Variants§
Tag7
Tag7: 7 B64 chars for protocol-only version.
Tag10
Tag10: 10 B64 chars for protocol + genus version.
Trait Implementations§
Source§impl CesrCode for VerserCode
impl CesrCode for VerserCode
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 VerserCode
impl Clone for VerserCode
Source§fn clone(&self) -> VerserCode
fn clone(&self) -> VerserCode
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 VerserCode
Source§impl Debug for VerserCode
impl Debug for VerserCode
impl Eq for VerserCode
Source§impl From<VerserCode> for MatterCode
impl From<VerserCode> for MatterCode
Source§fn from(code: VerserCode) -> Self
fn from(code: VerserCode) -> Self
Converts to this type from the input type.
Source§impl Hash for VerserCode
impl Hash for VerserCode
Source§impl PartialEq for VerserCode
impl PartialEq for VerserCode
impl StructuralPartialEq for VerserCode
Source§impl TryFrom<MatterCode> for VerserCode
impl TryFrom<MatterCode> for VerserCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for VerserCode
impl RefUnwindSafe for VerserCode
impl Send for VerserCode
impl Sync for VerserCode
impl Unpin for VerserCode
impl UnsafeUnpin for VerserCode
impl UnwindSafe for VerserCode
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