#[repr(C)]pub struct SplitPaneState {
pub direction: SplitDirection,
pub ratio: f32,
}Expand description
State of a SplitPane: the orientation and the first pane’s size fraction.
Fields§
§direction: SplitDirectionOrientation of the split.
ratio: f32Fraction [0, 1] of the container’s main-axis size taken by the FIRST
pane. Clamped to [MIN_RATIO, MAX_RATIO] so a pane never fully collapses.
Trait Implementations§
Source§impl Clone for SplitPaneState
impl Clone for SplitPaneState
Source§fn clone(&self) -> SplitPaneState
fn clone(&self) -> SplitPaneState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SplitPaneState
Source§impl Debug for SplitPaneState
impl Debug for SplitPaneState
Source§impl Default for SplitPaneState
impl Default for SplitPaneState
Source§impl PartialEq for SplitPaneState
impl PartialEq for SplitPaneState
impl StructuralPartialEq for SplitPaneState
Auto Trait Implementations§
impl Freeze for SplitPaneState
impl RefUnwindSafe for SplitPaneState
impl Send for SplitPaneState
impl Sync for SplitPaneState
impl Unpin for SplitPaneState
impl UnsafeUnpin for SplitPaneState
impl UnwindSafe for SplitPaneState
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