Enum cml_core::serialization::StringEncoding
source · pub enum StringEncoding {
Canonical,
Indefinite(Vec<(u64, Sz)>),
Definite(Sz),
}
Variants§
Implementations§
source§impl StringEncoding
impl StringEncoding
pub fn to_str_len_sz(&self, len: u64, force_canonical: bool) -> StringLenSz
Trait Implementations§
source§impl Clone for StringEncoding
impl Clone for StringEncoding
source§fn clone(&self) -> StringEncoding
fn clone(&self) -> StringEncoding
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StringEncoding
impl Debug for StringEncoding
source§impl Default for StringEncoding
impl Default for StringEncoding
source§impl From<StringLenSz> for StringEncoding
impl From<StringLenSz> for StringEncoding
source§fn from(len_sz: StringLenSz) -> Self
fn from(len_sz: StringLenSz) -> Self
Converts to this type from the input type.
source§impl PartialEq for StringEncoding
impl PartialEq for StringEncoding
source§fn eq(&self, other: &StringEncoding) -> bool
fn eq(&self, other: &StringEncoding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StringEncoding
impl StructuralPartialEq for StringEncoding
Auto Trait Implementations§
impl RefUnwindSafe for StringEncoding
impl Send for StringEncoding
impl Sync for StringEncoding
impl Unpin for StringEncoding
impl UnwindSafe for StringEncoding
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