pub struct SourceDirectory { /* private fields */ }Expand description
A Rust source directory discovered while scanning.
Implementations§
Source§impl SourceDirectory
impl SourceDirectory
Sourcepub fn module(&self) -> &ModulePath
pub fn module(&self) -> &ModulePath
Returns the Rust module path represented by this directory.
Sourcepub fn files(&self) -> &BTreeSet<String>
pub fn files(&self) -> &BTreeSet<String>
Returns Rust file names directly inside this directory.
Sourcepub fn child_directories(&self) -> &BTreeSet<String>
pub fn child_directories(&self) -> &BTreeSet<String>
Returns child directory names directly inside this directory.
Trait Implementations§
Source§impl Clone for SourceDirectory
impl Clone for SourceDirectory
Source§fn clone(&self) -> SourceDirectory
fn clone(&self) -> SourceDirectory
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 SourceDirectory
impl Debug for SourceDirectory
Source§impl PartialEq for SourceDirectory
impl PartialEq for SourceDirectory
Source§fn eq(&self, other: &SourceDirectory) -> bool
fn eq(&self, other: &SourceDirectory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SourceDirectory
impl StructuralPartialEq for SourceDirectory
Auto Trait Implementations§
impl Freeze for SourceDirectory
impl RefUnwindSafe for SourceDirectory
impl Send for SourceDirectory
impl Sync for SourceDirectory
impl Unpin for SourceDirectory
impl UnsafeUnpin for SourceDirectory
impl UnwindSafe for SourceDirectory
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