[−][src]Struct kas::layout::SingleSetter
RulesSetter implementation for a fixed single-child layout
Methods
impl SingleSetter[src]
pub fn new(rect: Rect, margins: Margins, _: (), _: &mut ()) -> Self[src]
Construct.
axis:AxisInfoinstance passed intosize_rulesmargins: margin sizesstorage: irrelevent, but included for consistency
Trait Implementations
impl RulesSetter for SingleSetter[src]
type Storage = ()
Type of storage
type ChildInfo = ()
Type required by RulesSolver::for_child (see implementation documentation)
fn child_rect(&mut self, _child_info: Self::ChildInfo) -> Rect[src]
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,
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.
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>,