pub struct LogicState {
pub been_true: bool,
pub been_false: bool,
}
Expand description
Used to track the state of logical conditions
Fields§
§been_true: bool
Whether the condition has been observed as true
been_false: bool
Whether the condition has been observed as false
Trait Implementations§
Source§impl<'a> Add for &'a LogicState
impl<'a> Add for &'a LogicState
Source§type Output = LogicState
type Output = LogicState
The resulting type after applying the
+
operator.Source§fn add(self, other: &'a LogicState) -> LogicState
fn add(self, other: &'a LogicState) -> LogicState
Performs the
+
operation. Read moreSource§impl Clone for LogicState
impl Clone for LogicState
Source§fn clone(&self) -> LogicState
fn clone(&self) -> LogicState
Returns a copy 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 LogicState
impl Debug for LogicState
Source§impl Default for LogicState
impl Default for LogicState
Source§fn default() -> LogicState
fn default() -> LogicState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogicState
impl<'de> Deserialize<'de> for LogicState
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 Hash for LogicState
impl Hash for LogicState
Source§impl PartialEq for LogicState
impl PartialEq for LogicState
Source§impl PartialOrd for LogicState
impl PartialOrd for LogicState
Source§impl Serialize for LogicState
impl Serialize for LogicState
impl Copy for LogicState
impl Eq for LogicState
impl StructuralPartialEq for LogicState
Auto Trait Implementations§
impl Freeze for LogicState
impl RefUnwindSafe for LogicState
impl Send for LogicState
impl Sync for LogicState
impl Unpin for LogicState
impl UnwindSafe for LogicState
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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.