pub struct MatchView<'a> { /* private fields */ }Expand description
Read‑only scoped accessor into Matches.
Implementations§
Source§impl MatchView<'_>
impl MatchView<'_>
Sourcepub fn is_set_from(&self, name: &str, src: Source) -> bool
pub fn is_set_from(&self, name: &str, src: Source) -> bool
True if present and from the given Source.
Sourcepub fn flag_count(&self, name: &str) -> usize
pub fn flag_count(&self, name: &str) -> usize
Number of times a flag appeared in this scope.
NOTE: only flags are counted; options with values return 0.
Sourcepub fn value(&self, name: &str) -> Option<&OsStr>
pub fn value(&self, name: &str) -> Option<&OsStr>
Get a single option value (first of many if repeated).
Auto Trait Implementations§
impl<'a> Freeze for MatchView<'a>
impl<'a> RefUnwindSafe for MatchView<'a>
impl<'a> Send for MatchView<'a>
impl<'a> Sync for MatchView<'a>
impl<'a> Unpin for MatchView<'a>
impl<'a> UnwindSafe for MatchView<'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