pub struct RowSolver<S: RowStorage> { /* private fields */ }Expand description
A RulesSolver for rows (and, without loss of generality, for columns).
This is parameterised over:
S:RowStorage— persistent storage type
Implementations
sourceimpl<S: RowStorage> RowSolver<S>
impl<S: RowStorage> RowSolver<S>
sourcepub fn new<D: Directional>(
axis: AxisInfo,
(dir, len): (D, usize),
storage: &mut S
) -> Self
pub fn new<D: Directional>(
axis: AxisInfo,
(dir, len): (D, usize),
storage: &mut S
) -> Self
Construct.
Argument order is consistent with other RulesSolvers.
axis:AxisInfoinstance passed intosize_rules(dir, len): direction and number of itemsstorage: reference to persistent storage
Trait Implementations
sourceimpl<S: RowStorage> RulesSolver for RowSolver<S>
impl<S: RowStorage> RulesSolver for RowSolver<S>
type Storage = S
type Storage = S
Type of storage
type ChildInfo = usize
type ChildInfo = usize
Type required by RulesSolver::for_child (see implementation documentation)
Auto Trait Implementations
impl<S> RefUnwindSafe for RowSolver<S>where
S: RefUnwindSafe,
impl<S> Send for RowSolver<S>where
S: Send,
impl<S> Sync for RowSolver<S>where
S: Sync,
impl<S> Unpin for RowSolver<S>where
S: Unpin,
impl<S> UnwindSafe for RowSolver<S>where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self to T Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self to T Read more
sourceimpl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more