pub struct Shells<'s>(pub &'s [&'s dyn EnvCompleter]);Available on crate feature
unstable-dynamic only.Expand description
Collection of shell-specific completers
Tuple Fields§
§0: &'s [&'s dyn EnvCompleter]Implementations§
Source§impl<'s> Shells<'s>
impl<'s> Shells<'s>
Sourcepub fn completer(&self, name: &str) -> Option<&dyn EnvCompleter>
pub fn completer(&self, name: &str) -> Option<&dyn EnvCompleter>
Find the specified EnvCompleter
Sourcepub fn names(&self) -> impl Iterator<Item = &'static str> + 's
pub fn names(&self) -> impl Iterator<Item = &'static str> + 's
Collect all EnvCompleter::names
Sourcepub fn iter(&self) -> impl Iterator<Item = &dyn EnvCompleter>
pub fn iter(&self) -> impl Iterator<Item = &dyn EnvCompleter>
Iterate over EnvCompleters
Auto Trait Implementations§
impl<'s> Freeze for Shells<'s>
impl<'s> !RefUnwindSafe for Shells<'s>
impl<'s> !Send for Shells<'s>
impl<'s> !Sync for Shells<'s>
impl<'s> Unpin for Shells<'s>
impl<'s> !UnwindSafe for Shells<'s>
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