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

pub struct Column<T: ?Sized> {
    pub access: fn(_: &T) -> &dyn Widget,
    pub access_mut: fn(_: &mut T) -> &mut dyn Widget,
    pub behavior: fn(_: &mut T, _: Input) -> Option<Input>,
}

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: fn(_: &T) -> &dyn Widget

Immutable widget access.

access_mut: fn(_: &mut T) -> &mut dyn Widget

Mutable widget access.

behavior: fn(_: &mut T, _: Input) -> 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]

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

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

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

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

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.

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.