Struct unsegen::widget::builtin::table::Column[][src]

pub struct Column<T: TableRow + ?Sized> {
    pub access: for<'a> fn(_: &'a T) -> Box<dyn Widget + 'a>,
    pub behavior: fn(_: &mut T, _: Input, _: &mut T::BehaviorContext) -> Option<Input>,
}
Expand description

A single column in a Table.

This does not store any data, but rather how to access a cell in a single column of a table and how it reacts to input.

In a sense this is only necessary because we do not have variadic generics.

Fields

access: for<'a> fn(_: &'a T) -> Box<dyn Widget + 'a>

Immutable widget access.

behavior: fn(_: &mut T, _: Input, _: &mut T::BehaviorContext) -> Option<Input>

Input processing

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for Column<T>

impl<T: ?Sized> Send for Column<T>

impl<T: ?Sized> Sync for Column<T>

impl<T: ?Sized> Unpin for Column<T>

impl<T: ?Sized> UnwindSafe for Column<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.