[−][src]Struct kas::layout::GridSetter
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]
rect: Rect,
(cols, rows): (usize, usize),
align: AlignHints,
storage: &mut S
) -> Self
Construct
Argument order is consistent with other RulesSetter
s.
rect
: theRect
within which to position children(cols, rows)
: number of columns and rowsalign
: alignment hintsstorage
: 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)
pub fn child_rect(
&mut self,
storage: &mut Self::Storage,
info: Self::ChildInfo
) -> Rect
[src]
&mut self,
storage: &mut Self::Storage,
info: Self::ChildInfo
) -> Rect
pub fn maximal_rect_of(
&mut self,
_storage: &mut Self::Storage,
_index: Self::ChildInfo
) -> Rect
[src]
&mut self,
_storage: &mut Self::Storage,
_index: Self::ChildInfo
) -> Rect
Auto Trait Implementations
impl<RT, CT, S> RefUnwindSafe for GridSetter<RT, CT, S> where
CT: RefUnwindSafe,
RT: RefUnwindSafe,
S: RefUnwindSafe,
CT: RefUnwindSafe,
RT: RefUnwindSafe,
S: RefUnwindSafe,
impl<RT, CT, S> Send for GridSetter<RT, CT, S> where
CT: Send,
RT: Send,
S: Send,
CT: Send,
RT: Send,
S: Send,
impl<RT, CT, S> Sync for GridSetter<RT, CT, S> where
CT: Sync,
RT: Sync,
S: Sync,
CT: Sync,
RT: Sync,
S: Sync,
impl<RT, CT, S> Unpin for GridSetter<RT, CT, S> where
CT: Unpin,
RT: Unpin,
S: Unpin,
CT: Unpin,
RT: Unpin,
S: Unpin,
impl<RT, CT, S> UnwindSafe for GridSetter<RT, CT, S> where
CT: UnwindSafe,
RT: UnwindSafe,
S: UnwindSafe,
CT: UnwindSafe,
RT: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,