Struct iptrie::Ipv6Prefix56
source · pub struct Ipv6Prefix56 { /* private fields */ }Expand description
An Ipv6 prefix limited to 56 bits and encoded as u64 (EXPERIMENTAL)
In many applications, managed Ipv6 prefixes are never longer than 56 bits. In theses cases, it is possible to save memory space by encoding it in 64 bits with its length encoded in one byte.
The resulting prefix is 4 times shorter that the corresponign Ipv6 generic prefix.
Implementations§
source§impl Ipv6Prefix56
impl Ipv6Prefix56
Trait Implementations§
source§impl Clone for Ipv6Prefix56
impl Clone for Ipv6Prefix56
source§fn clone(&self) -> Ipv6Prefix56
fn clone(&self) -> Ipv6Prefix56
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 Ipv6Prefix56
impl Debug for Ipv6Prefix56
source§impl Default for Ipv6Prefix56
impl Default for Ipv6Prefix56
source§fn default() -> Ipv6Prefix56
fn default() -> Ipv6Prefix56
Returns the “default value” for a type. Read more
source§impl Display for Ipv6Prefix56
impl Display for Ipv6Prefix56
source§impl From<Ipv6Prefix56> for Ipv6Net
impl From<Ipv6Prefix56> for Ipv6Net
source§fn from(value: Ipv6Prefix56) -> Self
fn from(value: Ipv6Prefix56) -> Self
Converts to this type from the input type.
source§impl From<Ipv6Prefix56> for Ipv6Prefix
impl From<Ipv6Prefix56> for Ipv6Prefix
source§fn from(value: Ipv6Prefix56) -> Self
fn from(value: Ipv6Prefix56) -> Self
Converts to this type from the input type.
source§impl From<Ipv6Prefix56> for Ipv6Prefix120
impl From<Ipv6Prefix56> for Ipv6Prefix120
source§fn from(value: Ipv6Prefix56) -> Self
fn from(value: Ipv6Prefix56) -> Self
Converts to this type from the input type.
source§impl FromStr for Ipv6Prefix56
impl FromStr for Ipv6Prefix56
source§impl Hash for Ipv6Prefix56
impl Hash for Ipv6Prefix56
source§impl IpPrefix for Ipv6Prefix56
impl IpPrefix for Ipv6Prefix56
source§fn bitslot_trunc(&self) -> Self::Slot
fn bitslot_trunc(&self) -> Self::Slot
The inner slot with all the masked bits set to 0. Read more
source§impl IpPrefixCovering<Ipv6Addr> for Ipv6Prefix56
impl IpPrefixCovering<Ipv6Addr> for Ipv6Prefix56
source§impl IpPrefixCovering<Ipv6Net> for Ipv6Prefix56
impl IpPrefixCovering<Ipv6Net> for Ipv6Prefix56
source§impl IpPrefixCovering<Ipv6Prefix> for Ipv6Prefix56
impl IpPrefixCovering<Ipv6Prefix> for Ipv6Prefix56
source§impl IpPrefixCovering<Ipv6Prefix120> for Ipv6Prefix56
impl IpPrefixCovering<Ipv6Prefix120> for Ipv6Prefix56
source§impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Net
impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Net
source§impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Prefix
impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Prefix
source§impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Prefix120
impl IpPrefixCovering<Ipv6Prefix56> for Ipv6Prefix120
source§impl PartialEq<Ipv6Prefix56> for Ipv6Prefix56
impl PartialEq<Ipv6Prefix56> for Ipv6Prefix56
source§fn eq(&self, other: &Ipv6Prefix56) -> bool
fn eq(&self, other: &Ipv6Prefix56) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<Ipv6Net> for Ipv6Prefix56
impl TryFrom<Ipv6Net> for Ipv6Prefix56
source§impl TryFrom<Ipv6Prefix> for Ipv6Prefix56
impl TryFrom<Ipv6Prefix> for Ipv6Prefix56
§type Error = IpPrefixError
type Error = IpPrefixError
The type returned in the event of a conversion error.
source§impl TryFrom<Ipv6Prefix120> for Ipv6Prefix56
impl TryFrom<Ipv6Prefix120> for Ipv6Prefix56
§type Error = IpPrefixError
type Error = IpPrefixError
The type returned in the event of a conversion error.
impl Copy for Ipv6Prefix56
impl Eq for Ipv6Prefix56
impl StructuralEq for Ipv6Prefix56
impl StructuralPartialEq for Ipv6Prefix56
Auto Trait Implementations§
impl RefUnwindSafe for Ipv6Prefix56
impl Send for Ipv6Prefix56
impl Sync for Ipv6Prefix56
impl Unpin for Ipv6Prefix56
impl UnwindSafe for Ipv6Prefix56
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