Struct tmux_interface::target::target_window::TargetWindowExt [−][src]
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]
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
[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]
fn default() -> 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,