#[repr(u8)]pub enum Comparison {
Eq = 0,
Ne = 1,
Lt = 2,
Le = 3,
Gt = 4,
Ge = 5,
StartsWith = 6,
EndsWith = 7,
Contains = 8,
}Expand description
Exact comparison. Equality distinguishes absent values; ranges and pattern matches require presence.
Variants§
Eq = 0
Equal, including two absent values.
Ne = 1
Not equal, including absent versus present.
Lt = 2
Present and less than the present operand.
Le = 3
Present and less than or equal to the present operand.
Gt = 4
Present and greater than the present operand.
Ge = 5
Present and greater than or equal to the present operand.
StartsWith = 6
Present Text or Blob starts with an exact operand of the same type. Text uses UTF-8 bytes without normalization; Blob uses raw bytes. Empty prefixes match all present values, including empty values; other types refuse.
EndsWith = 7
Present Text or Blob ends with an exact operand of the same type. Empty suffixes match all present values; text is not normalized.
Contains = 8
Present text contains the exact UTF-8 operand, without normalization. Empty needles match all present text; this is not collection membership.