pub enum StoryCompareOp {
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
}Expand description
A comparison operator in a Story condition. An unset variable
reads as 0, so a plain flag test is Ne 0 and its negation Eq 0.
Variants§
Eq
Equal.
Ne
Not equal.
Lt
Less than.
Le
Less than or equal.
Gt
Greater than.
Ge
Greater than or equal.
Implementations§
Trait Implementations§
Source§impl Clone for StoryCompareOp
impl Clone for StoryCompareOp
Source§fn clone(&self) -> StoryCompareOp
fn clone(&self) -> StoryCompareOp
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 moreimpl Copy for StoryCompareOp
Source§impl Debug for StoryCompareOp
impl Debug for StoryCompareOp
Source§impl Default for StoryCompareOp
impl Default for StoryCompareOp
Source§fn default() -> StoryCompareOp
fn default() -> StoryCompareOp
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoryCompareOp
impl<'de> Deserialize<'de> for StoryCompareOp
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
impl Eq for StoryCompareOp
Source§impl PartialEq for StoryCompareOp
impl PartialEq for StoryCompareOp
Source§impl Serialize for StoryCompareOp
impl Serialize for StoryCompareOp
impl StructuralPartialEq for StoryCompareOp
Auto Trait Implementations§
impl Freeze for StoryCompareOp
impl RefUnwindSafe for StoryCompareOp
impl Send for StoryCompareOp
impl Sync for StoryCompareOp
impl Unpin for StoryCompareOp
impl UnsafeUnpin for StoryCompareOp
impl UnwindSafe for StoryCompareOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.