Struct tmux_interface::target::target_window::TargetWindowExt[][src]

pub struct TargetWindowExt<'a> {
    pub session: Option<&'a TargetSession<'a>>,
    pub window: Option<TargetWindow<'a>>,
}

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

impl<'a> TargetWindowExt<'a>[src]

pub fn new(target_window: &'a str) -> Self[src]

simple initializing as start of a name

pub fn token(
    session: Option<&'a TargetSession<'a>>,
    token: TargetWindowToken
) -> Self
[src]

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[src]

pub fn id(session: Option<&'a TargetSession<'a>>, id: usize) -> Self[src]

pub fn exact_name(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self[src]

pub fn start_name(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self[src]

pub fn fn_match(session: Option<&'a TargetSession<'a>>, name: &'a str) -> Self[src]

pub fn raw(name: &'a str) -> Self[src]

Trait Implementations

impl<'a> Debug for TargetWindowExt<'a>[src]

impl<'a> Default for TargetWindowExt<'a>[src]

impl<'a> Display for TargetWindowExt<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.