#[non_exhaustive]pub enum Val {
Key(String),
Num(i64),
Ipv4([u8; 4]),
Mask(u8),
Prefix([u8; 4], u8),
Mac([u8; 6]),
Word(String),
Line(String),
Name(String),
Ipv6([u8; 16]),
Prefix6([u8; 16], u8),
}Expand description
a value of a parsed command
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Key(String)
a keyword, written out in full
Num(i64)
Ipv4([u8; 4])
Mask(u8)
Prefix([u8; 4], u8)
Mac([u8; 6])
Word(String)
Line(String)
Name(String)
Ipv6([u8; 16])
Prefix6([u8; 16], u8)
Trait Implementations§
impl Eq for Val
impl StructuralPartialEq for Val
Auto Trait Implementations§
impl Forget for Val
impl Freeze for Val
impl Move for Val
impl RefUnwindSafe for Val
impl Send for Valwhere
RawVecInner: Send,
impl Sync for Valwhere
RawVecInner: Sync,
impl Unpin for Val
impl UnsafeUnpin for Val
impl UnwindSafe for Valwhere
RawVecInner: UnwindSafe,
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