Struct cobalt_core::Source
source · [−]pub struct Source { /* private fields */ }Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more