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>
impl<T> Deserializable for LexicographicWord<T>
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 read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
Source§impl From<[BaseElement; 4]> for LexicographicWord
impl From<[BaseElement; 4]> for LexicographicWord
Source§fn from(value: [BaseElement; 4]) -> LexicographicWord
fn from(value: [BaseElement; 4]) -> LexicographicWord
Converts to this type from the input type.
Source§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>
impl<T> Serializable for LexicographicWord<T>
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> 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