Struct tmux_interface::commands::buffers::show_buffer::ShowBuffer
source · pub struct ShowBuffer<'a> {
pub buffer_name: Option<Cow<'a, str>>,
}
Expand description
Display the contents of the specified buffer.
§Manual
tmux ^1.5:
show-buffer [-b buffer-name]
(alias: showb)
tmux ^0.8:
show-buffer [-b buffer-index] [-t target-session]
(alias: showb)
Fields§
§buffer_name: Option<Cow<'a, str>>
[-b buffer-name]
Implementations§
source§impl<'a> ShowBuffer<'a>
impl<'a> ShowBuffer<'a>
pub fn new() -> Self
sourcepub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
pub fn buffer_name<S: Into<Cow<'a, str>>>(self, buffer_name: S) -> Self
[-b buffer-name]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for ShowBuffer<'a>
impl<'a> Clone for ShowBuffer<'a>
source§fn clone(&self) -> ShowBuffer<'a>
fn clone(&self) -> ShowBuffer<'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 ShowBuffer<'a>
impl<'a> Debug for ShowBuffer<'a>
source§impl<'a> Default for ShowBuffer<'a>
impl<'a> Default for ShowBuffer<'a>
source§fn default() -> ShowBuffer<'a>
fn default() -> ShowBuffer<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<ShowBuffer<'a>> for TmuxCommand<'a>
impl<'a> From<ShowBuffer<'a>> for TmuxCommand<'a>
source§fn from(item: ShowBuffer<'a>) -> Self
fn from(item: ShowBuffer<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for ShowBuffer<'a>
impl<'a> Hash for ShowBuffer<'a>
source§impl<'a> Ord for ShowBuffer<'a>
impl<'a> Ord for ShowBuffer<'a>
source§fn cmp(&self, other: &ShowBuffer<'a>) -> Ordering
fn cmp(&self, other: &ShowBuffer<'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 ShowBuffer<'a>
impl<'a> PartialEq for ShowBuffer<'a>
source§fn eq(&self, other: &ShowBuffer<'a>) -> bool
fn eq(&self, other: &ShowBuffer<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ShowBuffer<'a>
impl<'a> PartialOrd for ShowBuffer<'a>
source§fn partial_cmp(&self, other: &ShowBuffer<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ShowBuffer<'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 ShowBuffer<'a>
impl<'a> StructuralPartialEq for ShowBuffer<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ShowBuffer<'a>
impl<'a> Send for ShowBuffer<'a>
impl<'a> Sync for ShowBuffer<'a>
impl<'a> Unpin for ShowBuffer<'a>
impl<'a> UnwindSafe for ShowBuffer<'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