[−][src]Struct routinator::origins::AddressPrefix
An IP address prefix: an IP address and a prefix length.
Methods
impl AddressPrefix
[src]
pub fn new(addr: IpAddr, len: u8) -> Self
[src]
Creates a new prefix from an address and a length.
pub fn address(self) -> IpAddr
[src]
Returns the IP address part of a prefix.
pub fn address_length(self) -> u8
[src]
Returns the length part of a prefix.
pub fn covers(self, other: Self) -> bool
[src]
Returns whether self
covers other
.
Trait Implementations
impl<'a> From<&'a FriendlyRoaIpAddress> for AddressPrefix
[src]
fn from(addr: &'a FriendlyRoaIpAddress) -> Self
[src]
impl Clone for AddressPrefix
[src]
fn clone(&self) -> AddressPrefix
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AddressPrefix
[src]
impl Eq for AddressPrefix
[src]
impl PartialEq<AddressPrefix> for AddressPrefix
[src]
fn eq(&self, other: &AddressPrefix) -> bool
[src]
fn ne(&self, other: &AddressPrefix) -> bool
[src]
impl Debug for AddressPrefix
[src]
impl Display for AddressPrefix
[src]
impl FromStr for AddressPrefix
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for AddressPrefix
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for AddressPrefix
[src]
impl StructuralEq for AddressPrefix
[src]
Auto Trait Implementations
impl Send for AddressPrefix
impl Sync for AddressPrefix
impl Unpin for AddressPrefix
impl UnwindSafe for AddressPrefix
impl RefUnwindSafe for AddressPrefix
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,