pub struct Columns<'a> {
pub skip: usize,
pub pwd: &'a str,
pub funcs: &'a str,
pub sources: &'a str,
pub lines: &'a str,
pub args: Option<Args<'a>>,
}Expand description
One frame walk, in the sections stack.bash writes.
Fields§
§skip: usizeHow many leading frames belong to the instrument rather than the subject. At least one — the emitter’s own.
pwd: &'a strThe sending shell’s $PWD, which a relative BASH_SOURCE is relative
to as far as anything can know.
funcs: &'a str§sources: &'a str§lines: &'a str§args: Option<Args<'a>>Absent where an instrument does not report arguments at all.
Implementations§
Source§impl<'a> Columns<'a>
impl<'a> Columns<'a>
Sourcepub fn of(words: &'a [String]) -> Result<Self, Failure>
pub fn of(words: &'a [String]) -> Result<Self, Failure>
The sections out of a message’s key value payload, which is the
shape stack.bash appends them in.
Sourcepub fn frames(&self, shell: &Shell) -> Result<Stack, Failure>
pub fn frames(&self, shell: &Shell) -> Result<Stack, Failure>
The subject’s walk, read against the shell it was taken in.
shell is what that shell said of itself when it joined, and it is
needed because BASH_SOURCE alone cannot say what its own words mean:
$0 is a path in one shell and a stand-in for code in another.
Auto Trait Implementations§
impl<'a> Freeze for Columns<'a>
impl<'a> RefUnwindSafe for Columns<'a>
impl<'a> Send for Columns<'a>
impl<'a> Sync for Columns<'a>
impl<'a> Unpin for Columns<'a>
impl<'a> UnsafeUnpin for Columns<'a>
impl<'a> UnwindSafe for Columns<'a>
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