pub struct TurnConstraint {
pub unit: UnitId,
pub kind: ConstraintKind,
pub words: WordRange,
}Expand description
A constraint and its words.
Fields§
§unit: UnitIdIts unit.
kind: ConstraintKindWhich constraint.
words: WordRangeIts words.
Trait Implementations§
Source§impl Clone for TurnConstraint
impl Clone for TurnConstraint
Source§impl Debug for TurnConstraint
impl Debug for TurnConstraint
Source§impl<'de> Deserialize<'de> for TurnConstraint
impl<'de> Deserialize<'de> for TurnConstraint
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 TurnConstraint
Source§impl PartialEq for TurnConstraint
impl PartialEq for TurnConstraint
Source§impl Serialize for TurnConstraint
impl Serialize for TurnConstraint
impl StructuralPartialEq for TurnConstraint
Auto Trait Implementations§
impl Freeze for TurnConstraint
impl RefUnwindSafe for TurnConstraint
impl Send for TurnConstraint
impl Sync for TurnConstraint
impl Unpin for TurnConstraint
impl UnsafeUnpin for TurnConstraint
impl UnwindSafe for TurnConstraint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.