pub enum ScalarAssertion<T> {
Equals(T, String),
AtLeast(T, String),
AtMost(T, String),
Range(T, T, String),
OneOf(BTreeSet<T>, String),
Present(String),
Absent(String),
}Expand description
Generic scalar assertion verbs shared by file engines.
Variants§
Equals(T, String)
AtLeast(T, String)
AtMost(T, String)
Range(T, T, String)
OneOf(BTreeSet<T>, String)
Present(String)
Absent(String)
Implementations§
Source§impl<T> ScalarAssertion<T>
impl<T> ScalarAssertion<T>
Trait Implementations§
Source§impl<T> Clone for ScalarAssertion<T>where
T: Clone,
impl<T> Clone for ScalarAssertion<T>where
T: Clone,
Source§fn clone(&self) -> ScalarAssertion<T>
fn clone(&self) -> ScalarAssertion<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ScalarAssertion<T>where
T: Debug,
impl<T> Debug for ScalarAssertion<T>where
T: Debug,
impl<T> Eq for ScalarAssertion<T>where
T: Eq,
Source§impl<T> OnEmptyClass for ScalarAssertion<T>
impl<T> OnEmptyClass for ScalarAssertion<T>
Source§impl<T> PartialEq for ScalarAssertion<T>where
T: PartialEq,
impl<T> PartialEq for ScalarAssertion<T>where
T: PartialEq,
Source§impl<T> Resolve for ScalarAssertion<T>where
T: ScalarValue,
impl<T> Resolve for ScalarAssertion<T>where
T: ScalarValue,
type Merged = ScalarAssertion<T>
fn resolve( key: &str, items: Vec<(Provenance, ScalarAssertion<T>)>, conflicts: &mut Vec<ConflictEntry>, ) -> Option<ResolvedRequirement<<ScalarAssertion<T> as Resolve>::Merged, ScalarAssertion<T>>>
Auto Trait Implementations§
impl<T> Freeze for ScalarAssertion<T>where
T: Freeze,
impl<T> RefUnwindSafe for ScalarAssertion<T>where
T: RefUnwindSafe,
impl<T> Send for ScalarAssertion<T>where
T: Send,
impl<T> Sync for ScalarAssertion<T>where
T: Sync,
impl<T> Unpin for ScalarAssertion<T>where
T: Unpin,
impl<T> UnsafeUnpin for ScalarAssertion<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ScalarAssertion<T>where
T: UnwindSafe + RefUnwindSafe,
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