Struct tmux_interface::target::target_window::TargetWindowExt
source · pub struct TargetWindowExt<'a> {
pub session: Option<&'a TargetSession<'a>>,
pub window: Option<TargetWindow<'a>>,
}
Expand description
Extended TargetWindow
struct, includes TargetSession
Fields§
§session: Option<&'a TargetSession<'a>>
TargetSession
(tmux analog: target-session
)
window: Option<TargetWindow<'a>>
TargetWindow
(tmux analog: target-window
)
Implementations§
source§impl<'a> TargetWindowExt<'a>
impl<'a> TargetWindowExt<'a>
sourcepub fn token(
session: Option<&'a TargetSession<'a>>,
token: TargetWindowToken
) -> Self
pub fn token( session: Option<&'a TargetSession<'a>>, token: TargetWindowToken ) -> Self
Create TargetWindowExt
structure using one of TargetWindowToken
§Examples
use crate::tmux_interface::{TargetWindowExt, TargetWindowToken};
let target_window = TargetWindowExt::token(None, TargetWindowToken::Start);
pub fn index(session: Option<&'a TargetSession<'a>>, i: usize) -> Self
pub fn id(session: Option<&'a TargetSession<'a>>, id: usize) -> Self
pub fn exact_name(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self
pub fn start_name(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self
pub fn fn_match(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self
pub fn raw(name: &'a str) -> Self
Trait Implementations§
source§impl<'a> Debug for TargetWindowExt<'a>
impl<'a> Debug for TargetWindowExt<'a>
source§impl<'a> Default for TargetWindowExt<'a>
impl<'a> Default for TargetWindowExt<'a>
source§fn default() -> TargetWindowExt<'a>
fn default() -> TargetWindowExt<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TargetWindowExt<'a>
impl<'a> Send for TargetWindowExt<'a>
impl<'a> Sync for TargetWindowExt<'a>
impl<'a> Unpin for TargetWindowExt<'a>
impl<'a> UnwindSafe for TargetWindowExt<'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