pub struct PromptContext {Show 15 fields
pub pwd: String,
pub home: String,
pub user: String,
pub host: String,
pub host_short: String,
pub tty: String,
pub lastval: i32,
pub histnum: i64,
pub shlvl: i32,
pub num_jobs: i32,
pub is_root: bool,
pub cmd_stack: Vec<CmdState>,
pub psvar: Vec<String>,
pub term_width: usize,
pub lineno: i64,
}Expand description
Context for prompt expansion
Fields§
§pwd: String§home: String§user: String§host: String§host_short: String§tty: String§lastval: i32§histnum: i64§shlvl: i32§num_jobs: i32§is_root: bool§cmd_stack: Vec<CmdState>§psvar: Vec<String>§term_width: usize§lineno: i64Trait Implementations§
Auto Trait Implementations§
impl Freeze for PromptContext
impl RefUnwindSafe for PromptContext
impl Send for PromptContext
impl Sync for PromptContext
impl Unpin for PromptContext
impl UnsafeUnpin for PromptContext
impl UnwindSafe for PromptContext
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more