pub struct AddrPfxRange {
pub address_prefix: IpNet,
pub range_operator: RangeOperator,
}
Expand description
An address prefix IpNet
followed by an optional range operator RangeOperator
.
<address-prefix-range>
An address prefix range is an address prefix followed by an optional range operator. The range operators are:^- is the exclusive more specifics operator; it stands for the more specifics of the address prefix excluding the address prefix itself. For example, 128.9.0.0/16^- contains all the more specifics of 128.9.0.0/16 excluding 128.9.0.0/16.
^+ is the inclusive more specifics operator; it stands for the more specifics of the address prefix including the address prefix itself. For example, 5.0.0.0/8^+ contains all the more specifics of 5.0.0.0/8 including 5.0.0.0/8.
^n where n is an integer, stands for all the length n specifics of the address prefix. For example, 30.0.0.0/8^16 contains all the more specifics of 30.0.0.0/8 which are of length 16 such as 30.9.0.0/16.
^n-m where n and m are integers, stands for all the length n to length m specifics of the address prefix. For example, 30.0.0.0/8^24-32 contains all the more specifics of 30.0.0.0/8 which are of length 24 to 32 such as 30.9.9.96/28.
Fields§
§address_prefix: IpNet
§range_operator: RangeOperator
Implementations§
Trait Implementations§
source§impl Clone for AddrPfxRange
impl Clone for AddrPfxRange
source§fn clone(&self) -> AddrPfxRange
fn clone(&self) -> AddrPfxRange
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddrPfxRange
impl Debug for AddrPfxRange
source§impl<'de> Deserialize<'de> for AddrPfxRange
impl<'de> Deserialize<'de> for AddrPfxRange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl FromStr for AddrPfxRange
impl FromStr for AddrPfxRange
source§impl Hash for AddrPfxRange
impl Hash for AddrPfxRange
source§impl Ord for AddrPfxRange
impl Ord for AddrPfxRange
source§fn cmp(&self, other: &AddrPfxRange) -> Ordering
fn cmp(&self, other: &AddrPfxRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AddrPfxRange
impl PartialEq for AddrPfxRange
source§impl PartialOrd for AddrPfxRange
impl PartialOrd for AddrPfxRange
source§impl Serialize for AddrPfxRange
impl Serialize for AddrPfxRange
impl Eq for AddrPfxRange
impl StructuralPartialEq for AddrPfxRange
Auto Trait Implementations§
impl Freeze for AddrPfxRange
impl RefUnwindSafe for AddrPfxRange
impl Send for AddrPfxRange
impl Sync for AddrPfxRange
impl Unpin for AddrPfxRange
impl UnwindSafe for AddrPfxRange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more