pub enum ConversionType {
SubnetToPrefix,
PrefixToSubnet,
}
Expand description
This enum is used whether the user wants to convert subnet mask to prefix length or prefix length to subnet mask.
Variants§
Trait Implementations§
Source§impl Clone for ConversionType
impl Clone for ConversionType
Source§fn clone(&self) -> ConversionType
fn clone(&self) -> ConversionType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConversionType
impl Debug for ConversionType
Source§impl FromStr for ConversionType
impl FromStr for ConversionType
Source§impl ValueEnum for ConversionType
impl ValueEnum for ConversionType
Auto Trait Implementations§
impl Freeze for ConversionType
impl RefUnwindSafe for ConversionType
impl Send for ConversionType
impl Sync for ConversionType
impl Unpin for ConversionType
impl UnwindSafe for ConversionType
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
Mutably borrows from an owned value. Read more