pub struct PanePlacement {
pub direction: SplitDirection,
pub ratio: f64,
}Fields§
§direction: SplitDirection§ratio: f64Implementations§
Source§impl PanePlacement
impl PanePlacement
Sourcepub fn from_pane_count(pane_count: usize) -> Self
pub fn from_pane_count(pane_count: usize) -> Self
A split that brings the pane count to a power of two goes right. Every other split goes down. Ratio is always 0.5.
Trait Implementations§
Source§impl Clone for PanePlacement
impl Clone for PanePlacement
impl Copy for PanePlacement
Source§impl Debug for PanePlacement
impl Debug for PanePlacement
Source§impl<'de> Deserialize<'de> for PanePlacement
impl<'de> Deserialize<'de> for PanePlacement
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
Source§impl PartialEq for PanePlacement
impl PartialEq for PanePlacement
Source§impl Serialize for PanePlacement
impl Serialize for PanePlacement
impl StructuralPartialEq for PanePlacement
Auto Trait Implementations§
impl Freeze for PanePlacement
impl RefUnwindSafe for PanePlacement
impl Send for PanePlacement
impl Sync for PanePlacement
impl Unpin for PanePlacement
impl UnsafeUnpin for PanePlacement
impl UnwindSafe for PanePlacement
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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