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