pub struct Analysis {
pub commands: Vec<SimpleCmd>,
pub substitutions: Vec<String>,
pub truncated: bool,
}Expand description
What the AST pass found: every simple command the line would run (flattened,
including those nested in substitutions / compounds), plus the raw text of
every command substitution $(…) / backtick — so the classifier can also
whole-line-scan substitution bodies (e.g. a curl … | sh hidden in $(…)).
Fields§
§commands: Vec<SimpleCmd>§substitutions: Vec<String>§truncated: boolSet when the walk stopped early at [MAX_DEPTH] — some commands may not
have been collected, so the caller must fail toward caution (never Safe)
rather than trust an incomplete command list.
Trait Implementations§
impl Eq for Analysis
impl StructuralPartialEq for Analysis
Auto Trait Implementations§
impl Freeze for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnsafeUnpin for Analysis
impl UnwindSafe for Analysis
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.