[][src]Struct kas::layout::GridSolver

pub struct GridSolver<CSR, RSR, S: GridStorage> { /* fields omitted */ }

A RulesSolver for grids supporting cell-spans

This implementation relies on the caller to provide storage for solver data.

Implementations

impl<CSR: Default, RSR: Default, S: GridStorage> GridSolver<CSR, RSR, S>[src]

pub fn new(
    axis: AxisInfo,
    (cols, rows): (usize, usize),
    storage: &mut S
) -> Self
[src]

Construct.

Argument order is consistent with other RulesSolvers.

  • axis: AxisInfo instance passed into size_rules
  • (cols, rows): number of columns and rows
  • storage: reference to persistent storage

Trait Implementations

impl<CSR, RSR, S: GridStorage> RulesSolver for GridSolver<CSR, RSR, S> where
    CSR: AsRef<[(SizeRules, u32, u32)]> + AsMut<[(SizeRules, u32, u32)]>,
    RSR: AsRef<[(SizeRules, u32, u32)]> + AsMut<[(SizeRules, u32, u32)]>, 
[src]

type Storage = S

Type of storage

type ChildInfo = GridChildInfo

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

Auto Trait Implementations

impl<CSR, RSR, S> RefUnwindSafe for GridSolver<CSR, RSR, S> where
    CSR: RefUnwindSafe,
    RSR: RefUnwindSafe,
    S: RefUnwindSafe

impl<CSR, RSR, S> Send for GridSolver<CSR, RSR, S> where
    CSR: Send,
    RSR: Send,
    S: Send

impl<CSR, RSR, S> Sync for GridSolver<CSR, RSR, S> where
    CSR: Sync,
    RSR: Sync,
    S: Sync

impl<CSR, RSR, S> Unpin for GridSolver<CSR, RSR, S> where
    CSR: Unpin,
    RSR: Unpin,
    S: Unpin

impl<CSR, RSR, S> UnwindSafe for GridSolver<CSR, RSR, S> where
    CSR: UnwindSafe,
    RSR: 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.