pub enum ConstraintValue {
Integer(i64),
NamedValue(String),
Min,
Max,
}Expand description
Constraint value with support for named values and keywords
Variants§
Integer(i64)
Integer literal
NamedValue(String)
Named value reference (e.g., tcp in INTEGER {tcp(6), udp(17)})
Min
MIN keyword
Max
MAX keyword
Trait Implementations§
Source§impl Clone for ConstraintValue
impl Clone for ConstraintValue
Source§fn clone(&self) -> ConstraintValue
fn clone(&self) -> ConstraintValue
Returns a duplicate 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 ConstraintValue
impl Debug for ConstraintValue
Source§impl PartialEq for ConstraintValue
impl PartialEq for ConstraintValue
impl StructuralPartialEq for ConstraintValue
Auto Trait Implementations§
impl Freeze for ConstraintValue
impl RefUnwindSafe for ConstraintValue
impl Send for ConstraintValue
impl Sync for ConstraintValue
impl Unpin for ConstraintValue
impl UnsafeUnpin for ConstraintValue
impl UnwindSafe for ConstraintValue
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