pub struct Cidr6 {
pub base: u128,
}Expand description
An IPv6 /64 block, parsed from prefix::/64 and written back the same way (Display,
FromStr).
Fields§
§base: u128The network address, as a number.
Implementations§
Source§impl Cidr6
impl Cidr6
Sourcepub fn parse(s: &str) -> Option<Cidr6>
pub fn parse(s: &str) -> Option<Cidr6>
The block written prefix::/64, when it is one: the address must be the network
address itself, unique local (fc00::/7) or global unicast (2000::/3).
Sourcepub fn overlaps(self, other: Cidr6) -> bool
pub fn overlaps(self, other: Cidr6) -> bool
Whether the two blocks are the same: two /64 blocks share an address only then.
Trait Implementations§
impl Copy for Cidr6
impl Eq for Cidr6
impl StructuralPartialEq for Cidr6
Auto Trait Implementations§
impl Freeze for Cidr6
impl RefUnwindSafe for Cidr6
impl Send for Cidr6
impl Sync for Cidr6
impl Unpin for Cidr6
impl UnsafeUnpin for Cidr6
impl UnwindSafe for Cidr6
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.