pub enum Configuration<T> {
Split {
axis: Axis,
ratio: f32,
a: Box<Configuration<T>, Global>,
b: Box<Configuration<T>, Global>,
},
Pane(T),
}
Available on crate feature
pure
only.Expand description
The arrangement of a PaneGrid
.
Variants
Split
Fields
axis: Axis
The direction of the split.
ratio: f32
The ratio of the split in [0.0, 1.0].
a: Box<Configuration<T>, Global>
The left/top Configuration
of the split.
b: Box<Configuration<T>, Global>
The right/bottom Configuration
of the split.
A split of the available space.
Pane(T)
A Pane
.
Trait Implementations
sourceimpl<T> Clone for Configuration<T> where
T: Clone,
impl<T> Clone for Configuration<T> where
T: Clone,
sourcefn clone(&self) -> Configuration<T>
fn clone(&self) -> Configuration<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Configuration<T> where
T: RefUnwindSafe,
impl<T> Send for Configuration<T> where
T: Send,
impl<T> Sync for Configuration<T> where
T: Sync,
impl<T> Unpin for Configuration<T> where
T: Unpin,
impl<T> UnwindSafe for Configuration<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more