#[repr(u8)]pub enum PartitionType {
None = 0,
HorizontalSplit = 1,
VerticalSplit = 2,
Split = 3,
HorizontalA = 4,
HorizontalB = 5,
VerticalA = 6,
VerticalB = 7,
Horizontal4 = 8,
Vertical4 = 9,
}Expand description
Partition type for a block.
Variants§
None = 0
No partition (use current block size).
HorizontalSplit = 1
Horizontal split (top/bottom halves).
VerticalSplit = 2
Vertical split (left/right halves).
Split = 3
Quad split (4 equal quadrants).
HorizontalA = 4
Horizontal split with top half smaller.
HorizontalB = 5
Horizontal split with bottom half smaller.
VerticalA = 6
Vertical split with left half smaller.
VerticalB = 7
Vertical split with right half smaller.
Horizontal4 = 8
Horizontal 4-way split.
Vertical4 = 9
Vertical 4-way split.
Implementations§
Trait Implementations§
Source§impl Clone for PartitionType
impl Clone for PartitionType
Source§fn clone(&self) -> PartitionType
fn clone(&self) -> PartitionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionType
impl Debug for PartitionType
Source§impl Default for PartitionType
impl Default for PartitionType
Source§fn default() -> PartitionType
fn default() -> PartitionType
Returns the “default value” for a type. Read more
Source§impl PartialEq for PartitionType
impl PartialEq for PartitionType
impl Copy for PartitionType
impl Eq for PartitionType
impl StructuralPartialEq for PartitionType
Auto Trait Implementations§
impl Freeze for PartitionType
impl RefUnwindSafe for PartitionType
impl Send for PartitionType
impl Sync for PartitionType
impl Unpin for PartitionType
impl UnsafeUnpin for PartitionType
impl UnwindSafe for PartitionType
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<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