[][src]Struct routinator::origins::AddressPrefix

pub struct AddressPrefix { /* fields omitted */ }

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]

impl Clone for AddressPrefix[src]

impl Copy for AddressPrefix[src]

impl Eq for AddressPrefix[src]

impl PartialEq<AddressPrefix> for AddressPrefix[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.

impl Hash for AddressPrefix[src]

impl StructuralPartialEq for AddressPrefix[src]

impl StructuralEq for AddressPrefix[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err