pub struct ListOptions<'a> {
pub exclude_globs: Option<Vec<&'a str>>,
pub relative_glob: bool,
pub depth: Option<usize>,
}
Expand description
Note: In the future, the lifetime might be removed, and iter_files will take Option<&ListOptions>.
Fields§
§exclude_globs: Option<Vec<&'a str>>
§relative_glob: bool
When this is true,
- the glob will be relative to the directory of the list, rather than including it.
By default, it is false.
depth: Option<usize>
For now, only used in dir list
Implementations§
Source§impl<'a> ListOptions<'a>
Constructors
impl<'a> ListOptions<'a>
Constructors
Source§impl<'a> ListOptions<'a>
Setters
impl<'a> ListOptions<'a>
Setters
pub fn with_exclude_globs(self, globs: &'a [&'a str]) -> Self
pub fn with_relative_glob(self) -> Self
Source§impl<'a> ListOptions<'a>
Getters
impl<'a> ListOptions<'a>
Getters
pub fn exclude_globs(&'a self) -> Option<&'a [&'a str]>
Trait Implementations§
Source§impl<'a> Default for ListOptions<'a>
impl<'a> Default for ListOptions<'a>
Source§fn default() -> ListOptions<'a>
fn default() -> ListOptions<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a [&'a str]> for ListOptions<'a>
impl<'a> From<&'a [&'a str]> for ListOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ListOptions<'a>
impl<'a> RefUnwindSafe for ListOptions<'a>
impl<'a> Send for ListOptions<'a>
impl<'a> Sync for ListOptions<'a>
impl<'a> Unpin for ListOptions<'a>
impl<'a> UnwindSafe for ListOptions<'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