pub struct SessionLayoutBuilder<'a> { /* private fields */ }Expand description
Entry point returned by Session::layout.
Implementations§
Source§impl<'a> SessionLayoutBuilder<'a>
impl<'a> SessionLayoutBuilder<'a>
Sourcepub const fn window(self, window_index: u32) -> Self
pub const fn window(self, window_index: u32) -> Self
Selects the window index that will receive the layout.
This layout API mutates one existing window. The target window must
already exist and must contain exactly one pane when GridLayoutBuilder::apply
is called.
Sourcepub const fn grid(self, columns: usize, rows: usize) -> GridLayoutBuilder<'a>
pub const fn grid(self, columns: usize, rows: usize) -> GridLayoutBuilder<'a>
Starts a grid layout.
The first argument is the maximum number of columns per row, matching
the grid example grid(3, 2) for “three panes on top, two
panes below”. The second argument is the maximum number of rows.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionLayoutBuilder<'a>
impl<'a> !UnwindSafe for SessionLayoutBuilder<'a>
impl<'a> Freeze for SessionLayoutBuilder<'a>
impl<'a> Send for SessionLayoutBuilder<'a>
impl<'a> Sync for SessionLayoutBuilder<'a>
impl<'a> Unpin for SessionLayoutBuilder<'a>
impl<'a> UnsafeUnpin for SessionLayoutBuilder<'a>
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