pub struct TargetFindContext { /* private fields */ }Expand description
Current target context used for omitted targets and relative lookup.
Implementations§
Source§impl TargetFindContext
impl TargetFindContext
Sourcepub fn from_target(target: Target) -> Self
pub fn from_target(target: Target) -> Self
Creates a context anchored to a concrete current target.
Sourcepub const fn current(&self) -> Option<&Target>
pub const fn current(&self) -> Option<&Target>
Returns the current target when one is available.
Sourcepub fn forbid_missing_current_target_fallback(self) -> Self
pub fn forbid_missing_current_target_fallback(self) -> Self
Disables default-session fallback when a supplied current target no longer exists.
Sourcepub fn with_mouse_target(self, mouse_target: Option<Target>) -> Self
pub fn with_mouse_target(self, mouse_target: Option<Target>) -> Self
Returns a context extended with an active mouse target.
Sourcepub const fn mouse_target(&self) -> Option<&Target>
pub const fn mouse_target(&self) -> Option<&Target>
Returns the active mouse target when one is available.
Sourcepub fn with_marked_target(self, marked_target: Option<Target>) -> Self
pub fn with_marked_target(self, marked_target: Option<Target>) -> Self
Returns a context extended with the server-wide marked pane target.
Sourcepub const fn marked_target(&self) -> Option<&Target>
pub const fn marked_target(&self) -> Option<&Target>
Returns the marked pane target when one is available.
Sourcepub fn with_pane_base_indices(
self,
pane_base_indices: HashMap<(SessionName, u32), u32>,
) -> Self
pub fn with_pane_base_indices( self, pane_base_indices: HashMap<(SessionName, u32), u32>, ) -> Self
Returns a context extended with visible pane-index bases.
Trait Implementations§
Source§impl Clone for TargetFindContext
impl Clone for TargetFindContext
Source§fn clone(&self) -> TargetFindContext
fn clone(&self) -> TargetFindContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetFindContext
impl Debug for TargetFindContext
impl Eq for TargetFindContext
Source§impl PartialEq for TargetFindContext
impl PartialEq for TargetFindContext
impl StructuralPartialEq for TargetFindContext
Auto Trait Implementations§
impl Freeze for TargetFindContext
impl RefUnwindSafe for TargetFindContext
impl Send for TargetFindContext
impl Sync for TargetFindContext
impl Unpin for TargetFindContext
impl UnsafeUnpin for TargetFindContext
impl UnwindSafe for TargetFindContext
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