Struct kas_core::layout::SingleSetter
source · pub struct SingleSetter { /* private fields */ }
Expand description
RulesSetter
implementation for a fixed single-child layout
Implementations§
source§impl SingleSetter
impl SingleSetter
sourcepub fn new(rect: Rect, _dim: (), _align: AlignHints, _storage: &mut ()) -> Self
pub fn new(rect: Rect, _dim: (), _align: AlignHints, _storage: &mut ()) -> Self
Construct
Argument order is consistent with other RulesSetter
s.
rect
: theRect
within which to position children_dim
: unused_align
: unused_storage
: unused
Trait Implementations§
source§impl RulesSetter for SingleSetter
impl RulesSetter for SingleSetter
§type ChildInfo = ()
type ChildInfo = ()
Type required by
RulesSolver::for_child
(see implementation documentation)Auto Trait Implementations§
impl RefUnwindSafe for SingleSetter
impl Send for SingleSetter
impl Sync for SingleSetter
impl Unpin for SingleSetter
impl UnwindSafe for SingleSetter
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