pub enum Reserve {
None,
Reserve,
ReserveAndCenter,
}
Expand description
Determines whether the space of a layouts’ column should be reserved
when there is no window inside the column. A value of Reserve::Reserve
or
Reserve::ReserveAndCenter
will reserve the column space and make other
column(s) avoid it entirely. While a value of Reserve::None
makes other columns overtake the empty column space.
Variants§
None
No space will be reserved. Instead, the populated space will take over the empty space. This is the default variant.
+--------------+
| |
| MAIN |
| |
+--------------+
Reserve
Empty space is reserved in-place and won’t be populated with other elements
+--------+-----+
| | |
| MAIN | |
| | |
+--------+-----+
^
reserved empty space
ReserveAndCenter
Empty space is reserved in terms of amount of space, but not in terms of its position. Instead the populated space will be centered, while the empty space is accounted for on each side.
+--+--------+--+
| | | |
| | MAIN | |
| | | |
+--+--------+--+
^ ^
reserved empty space
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reserve
impl<'de> Deserialize<'de> for Reserve
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Reserve
impl Eq for Reserve
impl StructuralPartialEq for Reserve
Auto Trait Implementations§
impl Freeze for Reserve
impl RefUnwindSafe for Reserve
impl Send for Reserve
impl Sync for Reserve
impl Unpin for Reserve
impl UnwindSafe for Reserve
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