pub struct LexicographicWord<T = Word>(/* private fields */)
where
T: Into<Word>;Expand description
Implementations§
Source§impl<T> LexicographicWord<T>
impl<T> LexicographicWord<T>
Sourcepub fn new(inner: T) -> LexicographicWord<T>
pub fn new(inner: T) -> LexicographicWord<T>
Wraps the provided value into a new LexicographicWord.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes self and returns the inner value.
Trait Implementations§
Source§impl<T> Clone for LexicographicWord<T>
impl<T> Clone for LexicographicWord<T>
Source§fn clone(&self) -> LexicographicWord<T>
fn clone(&self) -> LexicographicWord<T>
Returns a duplicate 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<T> Debug for LexicographicWord<T>
impl<T> Debug for LexicographicWord<T>
Source§impl<T> Deserializable for LexicographicWord<T>
Available on not (target_family=wasm and miden).
impl<T> Deserializable for LexicographicWord<T>
Available on not (
target_family=wasm and miden).Source§fn read_from<R>(
source: &mut R,
) -> Result<LexicographicWord<T>, DeserializationError>where
R: ByteReader,
fn read_from<R>(
source: &mut R,
) -> Result<LexicographicWord<T>, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moreSource§fn min_serialized_size() -> usize
fn min_serialized_size() -> usize
Returns the minimum serialized size for one instance of this type. Read more
Source§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
Source§fn read_from_bytes_with_budget(
bytes: &[u8],
budget: usize,
) -> Result<Self, DeserializationError>
fn read_from_bytes_with_budget( bytes: &[u8], budget: usize, ) -> Result<Self, DeserializationError>
Deserializes
Self from bytes with a byte budget limit. Read moreSource§impl<T> From<LexicographicWord<T>> for Word
impl<T> From<LexicographicWord<T>> for Word
Source§fn from(key: LexicographicWord<T>) -> Word
fn from(key: LexicographicWord<T>) -> Word
Converts to this type from the input type.
Source§impl From<Word> for LexicographicWord
impl From<Word> for LexicographicWord
Source§fn from(word: Word) -> LexicographicWord
fn from(word: Word) -> LexicographicWord
Converts to this type from the input type.
Source§impl<T> Ord for LexicographicWord<T>
impl<T> Ord for LexicographicWord<T>
Source§fn cmp(&self, other: &LexicographicWord<T>) -> Ordering
fn cmp(&self, other: &LexicographicWord<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for LexicographicWord<T>
impl<T> PartialEq for LexicographicWord<T>
Source§impl<T> PartialOrd for LexicographicWord<T>
impl<T> PartialOrd for LexicographicWord<T>
Source§impl<T> Serializable for LexicographicWord<T>
Available on not (target_family=wasm and miden).
impl<T> Serializable for LexicographicWord<T>
Available on not (
target_family=wasm and miden).Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl<T> Copy for LexicographicWord<T>
impl<T> Eq for LexicographicWord<T>
Auto Trait Implementations§
impl<T> Freeze for LexicographicWord<T>where
T: Freeze,
impl<T> RefUnwindSafe for LexicographicWord<T>where
T: RefUnwindSafe,
impl<T> Send for LexicographicWord<T>where
T: Send,
impl<T> Sync for LexicographicWord<T>where
T: Sync,
impl<T> Unpin for LexicographicWord<T>where
T: Unpin,
impl<T> UnsafeUnpin for LexicographicWord<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LexicographicWord<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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