[−][src]Struct kas::layout::SingleSetter
RulesSetter
implementation for a fixed single-child layout
Implementations
impl SingleSetter
[src]
pub fn new(rect: Rect, _dim: (), _align: AlignHints, _storage: &mut ()) -> Self
[src]
Construct
Argument order is consistent with other RulesSetter
s.
rect
: theRect
within which to position children_dim
: unused_align
: unused_storage
: unused
Trait Implementations
impl RulesSetter for SingleSetter
[src]
type Storage = ()
Type of storage
type ChildInfo = ()
Type required by RulesSolver::for_child
(see implementation documentation)
pub fn child_rect(&mut self, _: &mut Self::Storage, _: Self::ChildInfo) -> Rect
[src]
pub fn maximal_rect_of(
&mut self,
_: &mut Self::Storage,
_: Self::ChildInfo
) -> Rect
[src]
&mut self,
_: &mut Self::Storage,
_: Self::ChildInfo
) -> Rect
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
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>,