#[non_exhaustive]pub struct DiscoveredDir {
pub path: Arc<Path>,
pub kind: DirKind,
pub reason: ClassificationReason,
pub files: Vec<DiscoveredFile>,
}Expand description
A single discovered directory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: Arc<Path>Path relative to Discovered::root, /-separated for portability.
kind: DirKindClassification.
reason: ClassificationReasonWhy we picked this kind. Audit trail surfaced in --verbose.
files: Vec<DiscoveredFile>Source files in this directory (no recursion — children belong to the next dir up).
Trait Implementations§
Source§impl Clone for DiscoveredDir
impl Clone for DiscoveredDir
Source§fn clone(&self) -> DiscoveredDir
fn clone(&self) -> DiscoveredDir
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 DiscoveredDir
impl Debug for DiscoveredDir
Source§impl PartialEq for DiscoveredDir
impl PartialEq for DiscoveredDir
Source§fn eq(&self, other: &DiscoveredDir) -> bool
fn eq(&self, other: &DiscoveredDir) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DiscoveredDir
impl StructuralPartialEq for DiscoveredDir
Auto Trait Implementations§
impl Freeze for DiscoveredDir
impl RefUnwindSafe for DiscoveredDir
impl Send for DiscoveredDir
impl Sync for DiscoveredDir
impl Unpin for DiscoveredDir
impl UnsafeUnpin for DiscoveredDir
impl UnwindSafe for DiscoveredDir
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.