pub struct ShellTally { /* private fields */ }Expand description
Shell results folded per interpreter: the reading that decides whether PowerShell 7 should become the default (D30).
Implementations§
Source§impl ShellTally
impl ShellTally
Sourcepub fn absorb(&mut self, result: &Map<String, Value>)
pub fn absorb(&mut self, result: &Map<String, Value>)
Counts one exec result, the result object of a tool result
record. Any other arm, and a shell line that ended without a code
(handed to the background, or stopped by a signal), is not
counted: there is nothing yet to classify.
Sourcepub fn interpreters(&self) -> impl Iterator<Item = (&str, &ShellCount)>
pub fn interpreters(&self) -> impl Iterator<Item = (&str, &ShellCount)>
Every interpreter seen, by name, with its count.
Trait Implementations§
Source§impl Clone for ShellTally
impl Clone for ShellTally
Source§impl Debug for ShellTally
impl Debug for ShellTally
Source§impl Default for ShellTally
impl Default for ShellTally
impl Eq for ShellTally
Source§impl PartialEq for ShellTally
impl PartialEq for ShellTally
impl StructuralPartialEq for ShellTally
Auto Trait Implementations§
impl Freeze for ShellTally
impl RefUnwindSafe for ShellTally
impl Send for ShellTally
impl Sync for ShellTally
impl Unpin for ShellTally
impl UnsafeUnpin for ShellTally
impl UnwindSafe for ShellTally
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