pub enum Assertion {
Show 28 variants
Any,
IsType(TypeKind),
IsNotType(TypeKind),
Falsy,
Truthy,
IsEqual(TypeKind),
IsNotEqual(TypeKind),
IsGreaterThan(TypeKind),
IsGreaterThanOrEqual(TypeKind),
IsLessThan(TypeKind),
IsLessThanOrEqual(TypeKind),
IsEqualIsset,
IsIsset,
IsNotIsset,
HasStringArrayAccess,
HasIntOrStringArrayAccess,
ArrayKeyExists,
ArrayKeyDoesNotExist,
InArray(TypeKind),
NotInArray(TypeKind),
HasArrayKey(ArrayShapePropertyKey),
DoesNotHaveArrayKey(ArrayShapePropertyKey),
HasNonnullEntryForKey(ArrayShapePropertyKey),
DoesNotHaveNonnullEntryForKey(ArrayShapePropertyKey),
NonEmptyCountable(bool),
EmptyCountable,
HasExactCount(usize),
DoesNotHaveExactCount(usize),
}Variants§
Any
IsType(TypeKind)
IsNotType(TypeKind)
Falsy
Truthy
IsEqual(TypeKind)
IsNotEqual(TypeKind)
IsGreaterThan(TypeKind)
IsGreaterThanOrEqual(TypeKind)
IsLessThan(TypeKind)
IsLessThanOrEqual(TypeKind)
IsEqualIsset
IsIsset
IsNotIsset
HasStringArrayAccess
HasIntOrStringArrayAccess
ArrayKeyExists
ArrayKeyDoesNotExist
InArray(TypeKind)
NotInArray(TypeKind)
HasArrayKey(ArrayShapePropertyKey)
DoesNotHaveArrayKey(ArrayShapePropertyKey)
HasNonnullEntryForKey(ArrayShapePropertyKey)
DoesNotHaveNonnullEntryForKey(ArrayShapePropertyKey)
NonEmptyCountable(bool)
EmptyCountable
HasExactCount(usize)
DoesNotHaveExactCount(usize)
Implementations§
Source§impl Assertion
impl Assertion
pub fn to_string(&self, interner: &ThreadedInterner) -> String
pub fn has_negation(&self) -> bool
pub fn has_isset(&self) -> bool
pub fn has_non_isset_equality(&self) -> bool
pub fn has_equality(&self) -> bool
pub fn has_literal_string_or_int(&self) -> bool
pub fn get_type(&self) -> Option<&TypeKind>
pub fn is_negation_of(&self, other: &Assertion) -> bool
pub fn get_negation(&self) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assertion
impl<'de> Deserialize<'de> for Assertion
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Assertion
impl Ord for Assertion
Source§impl PartialOrd for Assertion
impl PartialOrd for Assertion
impl Eq for Assertion
impl StructuralPartialEq for Assertion
Auto Trait Implementations§
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnwindSafe for Assertion
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