Skip to main content

ComparisonColumn

Struct ComparisonColumn 

Source
pub struct ComparisonColumn {
    pub member: Ident,
    pub name: String,
    pub held: TokenStream,
    pub gate: TokenStream,
}
Expand description

One column, as the COMPARISON unit reads it.

Fields§

§member: Ident

The Rust member — layer 1, the field’s own name.

§name: String

The NOUN a doc sentence calls this column, ALREADY SPELLED — see FilterColumn::name.

§held: TokenStream

What this column’s field is held at — <F as ToDatabaseComparison<V, Db>>::Comparison, built by the caller because which FILTER and which STORED type a column has is the grammar word’s answer.

§gate: TokenStream

The CONDITION the column is declared under, as the attribute to prefix onto every artifact it mints here — empty for a column that wrote none, and for every unit whose front end has no condition seat.

Carried on the ROW rather than looked up, because a unit is shared: the record family knows a field’s #[cfg] and the interface and standalone families have no such word, so the fact arrives with the column exactly as its filter and its noun do. See Condition.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.