Enum cml_cip36::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§fn default() -> StringEncoding
fn default() -> StringEncoding
Returns the “default value” for a type. Read more
source§impl From<StringLenSz> for StringEncoding
impl From<StringLenSz> for StringEncoding
source§fn from(len_sz: StringLenSz) -> StringEncoding
fn from(len_sz: StringLenSz) -> StringEncoding
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 Freeze for StringEncoding
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more