Skip to main content

FilterColumn

Struct FilterColumn 

Source
pub struct FilterColumn {
    pub member: Ident,
    pub name: String,
    pub filter: TokenStream,
    pub gate: TokenStream,
}
Expand description

One column, as the FILTER 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 — the backticked name and whatever else the subject’s own vocabulary puts on it, as in title column.

Spelled by the caller for UnitHeader::subject’s reason one layer down: an interface’s columns are the SHARED ones and a record’s are its own, and which adjective is true is a fact about the front end rather than about this walk. The head noun rides along with it, so a subject whose column is a COLLECTION says that instead.

§filter: TokenStream

The filter this column is guarded by, already projected through the marker layer.

§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.