pub trait Layout: Send + Sync {
// Required method
fn new_buffer(
&mut self,
pa: &Pass,
windows: &[Window],
) -> (Handle, PushSpecs);
}Expand description
A form of organizing opened Buffers
Determines how the n’th Buffer should be opened, given the
previously opened Buffers on the same window.
Required Methods§
Sourcefn new_buffer(&mut self, pa: &Pass, windows: &[Window]) -> (Handle, PushSpecs)
fn new_buffer(&mut self, pa: &Pass, windows: &[Window]) -> (Handle, PushSpecs)
Opens a new Buffer
The returned (Handle<Buffer>, PushSpecs) value
represents the PushSpecs to use when pushing this new
Buffer, and the Handle<Buffer> representing which
Buffer to push this Buffer to.
There will always be at least one Buffer open, since the
first opened Buffer doesn’t follow layouts.