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: RangeOperatorImplementations§
Trait Implementations§
Source§impl Clone for AddrPfxRange
impl Clone for AddrPfxRange
Source§fn clone(&self) -> AddrPfxRange
fn clone(&self) -> AddrPfxRange
1.0.0 (const: unstable) · 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<AddrPfxRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddrPfxRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for AddrPfxRange
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 (const: unstable) · 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§fn eq(&self, other: &AddrPfxRange) -> bool
fn eq(&self, other: &AddrPfxRange) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AddrPfxRange
impl PartialOrd for AddrPfxRange
Source§impl Serialize for AddrPfxRange
impl Serialize for AddrPfxRange
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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