Struct kas_core::layout::GridSetter
source · pub struct GridSetter<CT: RowTemp, RT: RowTemp, S: GridStorage> { /* private fields */ }
Expand description
A RulesSetter
for grids supporting cell-spans
Implementations§
source§impl<CT: RowTemp, RT: RowTemp, S: GridStorage> GridSetter<CT, RT, S>
impl<CT: RowTemp, RT: RowTemp, S: GridStorage> GridSetter<CT, RT, S>
sourcepub fn new(rect: Rect, dim: GridDimensions, storage: &mut S) -> Self
pub fn new(rect: Rect, dim: GridDimensions, storage: &mut S) -> Self
Construct
Argument order is consistent with other RulesSetter
s.
rect
: theRect
within which to position childrendim
: grid dimensionsstorage
: access to the solver’s storage
Trait Implementations§
source§impl<CT: RowTemp, RT: RowTemp, S: GridStorage> RulesSetter for GridSetter<CT, RT, S>
impl<CT: RowTemp, RT: RowTemp, S: GridStorage> RulesSetter for GridSetter<CT, RT, S>
§type ChildInfo = GridChildInfo
type ChildInfo = GridChildInfo
Type required by
RulesSolver::for_child
(see implementation documentation)Auto Trait Implementations§
impl<CT, RT, S> RefUnwindSafe for GridSetter<CT, RT, S>where
CT: RefUnwindSafe,
RT: RefUnwindSafe,
S: RefUnwindSafe,
impl<CT, RT, S> Send for GridSetter<CT, RT, S>where
CT: Send,
RT: Send,
S: Send,
impl<CT, RT, S> Sync for GridSetter<CT, RT, S>where
CT: Sync,
RT: Sync,
S: Sync,
impl<CT, RT, S> Unpin for GridSetter<CT, RT, S>where
CT: Unpin,
RT: Unpin,
S: Unpin,
impl<CT, RT, S> UnwindSafe for GridSetter<CT, RT, S>where
CT: UnwindSafe,
RT: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more