Struct tmux_interface::commands::windows_and_panes::next_layout::NextLayout
source · pub struct NextLayout<'a> {
pub target_window: Option<Cow<'a, str>>,
}
Expand description
Move a window to the next layout and rearrange the panes to fit
§Manual
tmux ^0.8:
next-layout [-t target-window]
(alias: nextl)
Fields§
§target_window: Option<Cow<'a, str>>
[-t target-window]
Implementations§
source§impl<'a> NextLayout<'a>
impl<'a> NextLayout<'a>
pub fn new() -> Self
sourcepub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
pub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
[-t target-window]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for NextLayout<'a>
impl<'a> Clone for NextLayout<'a>
source§fn clone(&self) -> NextLayout<'a>
fn clone(&self) -> NextLayout<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for NextLayout<'a>
impl<'a> Debug for NextLayout<'a>
source§impl<'a> Default for NextLayout<'a>
impl<'a> Default for NextLayout<'a>
source§fn default() -> NextLayout<'a>
fn default() -> NextLayout<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<NextLayout<'a>> for TmuxCommand<'a>
impl<'a> From<NextLayout<'a>> for TmuxCommand<'a>
source§fn from(item: NextLayout<'a>) -> Self
fn from(item: NextLayout<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for NextLayout<'a>
impl<'a> Hash for NextLayout<'a>
source§impl<'a> Ord for NextLayout<'a>
impl<'a> Ord for NextLayout<'a>
source§fn cmp(&self, other: &NextLayout<'a>) -> Ordering
fn cmp(&self, other: &NextLayout<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for NextLayout<'a>
impl<'a> PartialEq for NextLayout<'a>
source§fn eq(&self, other: &NextLayout<'a>) -> bool
fn eq(&self, other: &NextLayout<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for NextLayout<'a>
impl<'a> PartialOrd for NextLayout<'a>
source§fn partial_cmp(&self, other: &NextLayout<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &NextLayout<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for NextLayout<'a>
impl<'a> StructuralPartialEq for NextLayout<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NextLayout<'a>
impl<'a> Send for NextLayout<'a>
impl<'a> Sync for NextLayout<'a>
impl<'a> Unpin for NextLayout<'a>
impl<'a> UnwindSafe for NextLayout<'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