pub struct BareLayoutPolicy {
pub root_dirs: &'static [&'static str],
pub root_file_exts: &'static [&'static str],
pub case_insensitive_dirs: bool,
}Expand description
Recognizes a “bare” mod layout — files/dirs that belong directly at the mod
root (e.g. a meshes/, textures/ folder or a loose .esp) rather than
being wrapped in an extra top-level directory.
Fields§
§root_dirs: &'static [&'static str]§root_file_exts: &'static [&'static str]§case_insensitive_dirs: boolImplementations§
Source§impl BareLayoutPolicy
impl BareLayoutPolicy
Sourcepub fn recognizes(self, extracted_dir: &Path) -> bool
pub fn recognizes(self, extracted_dir: &Path) -> bool
Returns true if extracted_dir directly contains a recognised root
directory or file extension (i.e. it is already a bare mod layout).
Trait Implementations§
Source§impl Clone for BareLayoutPolicy
impl Clone for BareLayoutPolicy
Source§fn clone(&self) -> BareLayoutPolicy
fn clone(&self) -> BareLayoutPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BareLayoutPolicy
impl Debug for BareLayoutPolicy
impl Copy for BareLayoutPolicy
Auto Trait Implementations§
impl Freeze for BareLayoutPolicy
impl RefUnwindSafe for BareLayoutPolicy
impl Send for BareLayoutPolicy
impl Sync for BareLayoutPolicy
impl Unpin for BareLayoutPolicy
impl UnsafeUnpin for BareLayoutPolicy
impl UnwindSafe for BareLayoutPolicy
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