pub struct LoadOptions {
pub extensions: Vec<String>,
pub skip_dirs: Vec<String>,
pub max_file_bytes: u64,
pub skip_hidden: bool,
pub respect_ignore_files: bool,
}Expand description
Options for SourceSet::load_dir.
Fields§
§extensions: Vec<String>File extensions to include, without the dot (["rs"]).
skip_dirs: Vec<String>Directory names skipped wherever they appear.
max_file_bytes: u64Files larger than this are skipped (they are almost always generated).
Skip hidden files and directories (names starting with .).
respect_ignore_files: boolHonour .gitignore and .ignore files found under the root (not
above it, and never the user’s global excludes, so the result still
depends only on the bytes under the root). On by default: ignored
trees are typically vendored registries, build output or caches.
Trait Implementations§
Source§impl Clone for LoadOptions
impl Clone for LoadOptions
Source§impl Debug for LoadOptions
impl Debug for LoadOptions
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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