pub enum SelInfo<'s> {
None,
One(Selection<'s>),
More(&'s Stage),
}
Variants§
Implementations§
source§impl<'a> SelInfo<'a>
impl<'a> SelInfo<'a>
pub fn from_path(path: &'a Path) -> Self
pub fn count_paths(&self) -> usize
pub fn is_accepted_by(&self, condition: FileTypeCondition) -> bool
pub fn common_stype(&self) -> Option<SelectionType>
pub fn one_sel(self) -> Option<Selection<'a>>
pub fn one_path(self) -> Option<&'a Path>
pub fn extension(&self) -> Option<&str>
Trait Implementations§
impl<'s> Copy for SelInfo<'s>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for SelInfo<'s>
impl<'s> Send for SelInfo<'s>
impl<'s> Sync for SelInfo<'s>
impl<'s> Unpin for SelInfo<'s>
impl<'s> UnwindSafe for SelInfo<'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