pub enum PairSplit {
Fix(u16, u16),
Fix1(u16),
Fix2(u16),
Ratio(u16, u16),
Constrain(Constraint, Constraint),
}Expand description
How to split the area for the two widgets.
Variants§
Fix(u16, u16)
Both widgets have a preferred size.
Fix1(u16)
The first widget has a preferred size. The second gets the rest.
Fix2(u16)
The second widget has a preferred size. The first gets the rest.
Ratio(u16, u16)
Always split the area in the given ratio.
Constrain(Constraint, Constraint)
Use the given Constraints
Trait Implementations§
impl Copy for PairSplit
impl Eq for PairSplit
impl StructuralPartialEq for PairSplit
Auto Trait Implementations§
impl Freeze for PairSplit
impl RefUnwindSafe for PairSplit
impl Send for PairSplit
impl Sync for PairSplit
impl Unpin for PairSplit
impl UnwindSafe for PairSplit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more