pub enum Input {
Dir(Box<Path>),
File(InputFile),
}Expand description
Input directory OR file.
Variants§
Implementations§
Source§impl Input
impl Input
Sourcepub fn iter(&self) -> Box<dyn Iterator<Item = InputFile>>
👎Deprecated since 0.2.2: Use new_iter
pub fn iter(&self) -> Box<dyn Iterator<Item = InputFile>>
Returns iterator of files in the Input::Dir directory (non-recursive),
OR single-file iterator from Input::File.
Sourcepub fn new_iter(&self) -> impl Iterator<Item = InputFile> + use<>
pub fn new_iter(&self) -> impl Iterator<Item = InputFile> + use<>
Returns iterator of files in the Input::Dir directory (non-recursive),
OR single-file iterator from Input::File.
Trait Implementations§
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more