pub struct ITerm2ProfileConditions {
pub iterm_session: bool,
pub tmux_session: bool,
pub profile_installed: bool,
}Expand description
Named gate conditions for the one-shot iTerm2 profile switch.
Stable-Rust emulation of named arguments: call sites construct this
struct with named fields instead of passing three positional bools,
so iterm_session cannot be confused with tmux_session at a glance.
Fields§
§iterm_session: boolITERM_SESSION_ID is present (real iTerm2 session).
tmux_session: boolTMUX is present (proprietary sequences do not pass through multiplexers).
profile_installed: boolShipped dynamic profile is installed.
Implementations§
Source§impl ITerm2ProfileConditions
impl ITerm2ProfileConditions
Sourcepub fn should_apply(&self) -> bool
pub fn should_apply(&self) -> bool
Pure gate evaluation.
Trait Implementations§
Source§impl Clone for ITerm2ProfileConditions
impl Clone for ITerm2ProfileConditions
impl Copy for ITerm2ProfileConditions
Source§impl Debug for ITerm2ProfileConditions
impl Debug for ITerm2ProfileConditions
Source§impl Default for ITerm2ProfileConditions
impl Default for ITerm2ProfileConditions
impl Eq for ITerm2ProfileConditions
Source§impl PartialEq for ITerm2ProfileConditions
impl PartialEq for ITerm2ProfileConditions
impl StructuralPartialEq for ITerm2ProfileConditions
Auto Trait Implementations§
impl Freeze for ITerm2ProfileConditions
impl RefUnwindSafe for ITerm2ProfileConditions
impl Send for ITerm2ProfileConditions
impl Sync for ITerm2ProfileConditions
impl Unpin for ITerm2ProfileConditions
impl UnsafeUnpin for ITerm2ProfileConditions
impl UnwindSafe for ITerm2ProfileConditions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.