pub struct Layout { /* private fields */ }Implementations§
Source§impl Layout
impl Layout
pub fn set_generator(&mut self, generator: &str) -> &mut Self
Sourcepub fn set_args(&mut self, args: &str) -> &mut Self
pub fn set_args(&mut self, args: &str) -> &mut Self
Consider writing args in multiline strings
§Example
use river_rs::layout::Layout;
let mut layout = Layout::default();
let args = "-view-padding 6 \
-outer-padding 6";
layout.set_generator("rivertile");
layout.set_args(args);pub fn spawn(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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