pub enum RangeOperator {
NoOp,
Minus,
Plus,
Num(u8),
Range(u8, u8),
}
Variants§
NoOp
Minus
^-
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.
Plus
^+
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.
Num(u8)
^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.
Range(u8, u8)
^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.
Implementations§
Trait Implementations§
source§impl Clone for RangeOperator
impl Clone for RangeOperator
source§fn clone(&self) -> RangeOperator
fn clone(&self) -> RangeOperator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RangeOperator
impl Debug for RangeOperator
source§impl<'de> Deserialize<'de> for RangeOperator
impl<'de> Deserialize<'de> for RangeOperator
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 Display for RangeOperator
impl Display for RangeOperator
source§impl FromStr for RangeOperator
impl FromStr for RangeOperator
source§impl Hash for RangeOperator
impl Hash for RangeOperator
source§impl Ord for RangeOperator
impl Ord for RangeOperator
source§fn cmp(&self, other: &RangeOperator) -> Ordering
fn cmp(&self, other: &RangeOperator) -> 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 RangeOperator
impl PartialEq for RangeOperator
source§fn eq(&self, other: &RangeOperator) -> bool
fn eq(&self, other: &RangeOperator) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RangeOperator
impl PartialOrd for RangeOperator
source§fn partial_cmp(&self, other: &RangeOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &RangeOperator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for RangeOperator
impl Serialize for RangeOperator
impl Copy for RangeOperator
impl Eq for RangeOperator
impl StructuralPartialEq for RangeOperator
Auto Trait Implementations§
impl Freeze for RangeOperator
impl RefUnwindSafe for RangeOperator
impl Send for RangeOperator
impl Sync for RangeOperator
impl Unpin for RangeOperator
impl UnwindSafe for RangeOperator
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> 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