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: PartialOrd> PartialOrd for Variable<Column>
impl<Column: PartialOrd> PartialOrd for Variable<Column>
impl<Column: Copy> Copy for Variable<Column>
impl<Column: Eq> Eq for Variable<Column>
impl<Column> StructuralPartialEq for Variable<Column>
Auto Trait Implementations§
impl<Column> Freeze for Variable<Column>where
Column: Freeze,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more