Struct cobalt_core::Source
source · pub struct Source { /* private fields */ }
Implementations§
source§impl Source
impl Source
pub fn new<'i>( root: &Path, ignores: impl IntoIterator<Item = &'i str> ) -> Result<Self, Status>
pub fn root(&self) -> &Path
pub fn includes_file(&self, file: &Path) -> bool
pub fn includes_dir(&self, dir: &Path) -> bool
pub fn iter(&self) -> impl Iterator<Item = SourcePath> + '_
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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