pub struct HiddenPolicy { /* private fields */ }Expand description
Whether leading-dot path components are retained.
The allowlist contains exact component names. Exact names avoid adding a second glob
language beside query globs and .gitignore rules.
Implementations§
Source§impl HiddenPolicy
impl HiddenPolicy
Prune hidden components except for the exact names in allow.
Sourcepub const fn is_pruning(&self) -> bool
pub const fn is_pruning(&self) -> bool
Whether the policy removes any hidden components.
Sourcepub fn allowed(&self) -> impl ExactSizeIterator<Item = &OsStr>
pub fn allowed(&self) -> impl ExactSizeIterator<Item = &OsStr>
Exact allowlisted component names in deterministic order.
Sourcepub const fn fingerprint(&self) -> u64
pub const fn fingerprint(&self) -> u64
Stable identity derived from the normalized policy.
Trait Implementations§
Source§impl Clone for HiddenPolicy
impl Clone for HiddenPolicy
Source§impl Debug for HiddenPolicy
impl Debug for HiddenPolicy
Source§impl Default for HiddenPolicy
impl Default for HiddenPolicy
impl Eq for HiddenPolicy
Source§impl PartialEq for HiddenPolicy
impl PartialEq for HiddenPolicy
impl StructuralPartialEq for HiddenPolicy
Auto Trait Implementations§
impl Freeze for HiddenPolicy
impl RefUnwindSafe for HiddenPolicy
impl Send for HiddenPolicy
impl Sync for HiddenPolicy
impl Unpin for HiddenPolicy
impl UnsafeUnpin for HiddenPolicy
impl UnwindSafe for HiddenPolicy
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