Enum akd::PrefixOrdering
source · #[repr(u8)]pub enum PrefixOrdering {
WithZero,
WithOne,
Invalid,
}
Expand description
This type is used to indicate whether or not one label is a prefix of another, and if so, whether the longer string has a 0 after the prefix, or a 1 after the prefix. If the first label is equal to the second, or not a prefix of the second, then it is considered invalid.
Variants§
WithZero
Corresponds to a Direction::Left
WithOne
Corresponds to a Direction::Right
Invalid
First label is either equal to the second, or simply not a prefix of the second
Trait Implementations§
source§impl Clone for PrefixOrdering
impl Clone for PrefixOrdering
source§fn clone(&self) -> PrefixOrdering
fn clone(&self) -> PrefixOrdering
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 PrefixOrdering
impl Debug for PrefixOrdering
source§impl From<Bit> for PrefixOrdering
impl From<Bit> for PrefixOrdering
source§fn from(bit: Bit) -> PrefixOrdering
fn from(bit: Bit) -> PrefixOrdering
Converts to this type from the input type.
source§impl Hash for PrefixOrdering
impl Hash for PrefixOrdering
source§impl PartialEq<PrefixOrdering> for PrefixOrdering
impl PartialEq<PrefixOrdering> for PrefixOrdering
source§fn eq(&self, other: &PrefixOrdering) -> bool
fn eq(&self, other: &PrefixOrdering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SizeOf for PrefixOrdering
impl SizeOf for PrefixOrdering
source§impl TryFrom<PrefixOrdering> for Direction
impl TryFrom<PrefixOrdering> for Direction
impl Copy for PrefixOrdering
impl Eq for PrefixOrdering
impl StructuralEq for PrefixOrdering
impl StructuralPartialEq for PrefixOrdering
Auto Trait Implementations§
impl RefUnwindSafe for PrefixOrdering
impl Send for PrefixOrdering
impl Sync for PrefixOrdering
impl Unpin for PrefixOrdering
impl UnwindSafe for PrefixOrdering
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more