Enum akd_client::PrefixOrdering
source · 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 ==
.