[][src]Struct kas::layout::GridSetter

pub struct GridSetter<RT: RowTemp, CT: RowTemp, S: GridStorage> { /* fields omitted */ }

A RulesSetter for grids supporting cell-spans

Implementations

impl<RT: RowTemp, CT: RowTemp, S: GridStorage> GridSetter<RT, CT, S>[src]

pub fn new(
    rect: Rect,
    (cols, rows): (usize, usize),
    align: AlignHints,
    storage: &mut S
) -> Self
[src]

Construct

Argument order is consistent with other RulesSetters.

  • rect: the Rect within which to position children
  • (cols, rows): number of columns and rows
  • align: alignment hints
  • storage: access to the solver's storage

Trait Implementations

impl<RT: RowTemp, CT: RowTemp, S: GridStorage> RulesSetter for GridSetter<RT, CT, S>[src]

type Storage = S

Type of storage

type ChildInfo = GridChildInfo

Type required by RulesSolver::for_child (see implementation documentation)

Auto Trait Implementations

impl<RT, CT, S> RefUnwindSafe for GridSetter<RT, CT, S> where
    CT: RefUnwindSafe,
    RT: RefUnwindSafe,
    S: RefUnwindSafe

impl<RT, CT, S> Send for GridSetter<RT, CT, S> where
    CT: Send,
    RT: Send,
    S: Send

impl<RT, CT, S> Sync for GridSetter<RT, CT, S> where
    CT: Sync,
    RT: Sync,
    S: Sync

impl<RT, CT, S> Unpin for GridSetter<RT, CT, S> where
    CT: Unpin,
    RT: Unpin,
    S: Unpin

impl<RT, CT, S> UnwindSafe for GridSetter<RT, CT, S> where
    CT: UnwindSafe,
    RT: UnwindSafe,
    S: UnwindSafe

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.