pub struct Variable<Column> {
pub col: Column,
pub row: CurrOrNext,
}
Expand description
A type representing a variable which can appear in a constraint. It specifies a column and a relative position (Curr or Next)
Fields§
§col: Column
The column of this variable
row: CurrOrNext
The row (Curr of Next) of this variable
Trait Implementations§
source§impl<'de, Column> Deserialize<'de> for Variable<Column>where
Column: Deserialize<'de>,
impl<'de, Column> Deserialize<'de> for Variable<Column>where Column: Deserialize<'de>,
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<Column: FormattedOutput + Debug> FormattedOutput for Variable<Column>
impl<Column: FormattedOutput + Debug> FormattedOutput for Variable<Column>
source§impl<Column: Ord> Ord for Variable<Column>
impl<Column: Ord> Ord for Variable<Column>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Column: PartialEq> PartialEq<Variable<Column>> for Variable<Column>
impl<Column: PartialEq> PartialEq<Variable<Column>> for Variable<Column>
source§impl<Column: PartialOrd> PartialOrd<Variable<Column>> for Variable<Column>
impl<Column: PartialOrd> PartialOrd<Variable<Column>> for Variable<Column>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Column: Copy> Copy for Variable<Column>
impl<Column: Eq> Eq for Variable<Column>
impl<Column> StructuralEq for Variable<Column>
impl<Column> StructuralPartialEq for Variable<Column>
Auto Trait Implementations§
impl<Column> RefUnwindSafe for Variable<Column>where Column: RefUnwindSafe,
impl<Column> Send for Variable<Column>where Column: Send,
impl<Column> Sync for Variable<Column>where Column: Sync,
impl<Column> Unpin for Variable<Column>where Column: Unpin,
impl<Column> UnwindSafe for Variable<Column>where Column: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more