pub struct FileGraph { /* private fields */ }Expand description
ⓘ
use std::collections::BTreeSet;
use std::path::PathBuf;
use source_mesh_core::model::FileGraph;
let files = BTreeSet::from([PathBuf::from("lib.rs")]);
let graph = FileGraph::new(files, BTreeSet::new());Implementations§
Source§impl FileGraph
impl FileGraph
pub fn new(files: BTreeSet<FileNode>, edges: BTreeSet<FileEdge>) -> Result<Self>
pub fn without_test_dependencies(self) -> Self
pub fn within_root(self, root: &Path) -> Result<Self>
pub fn folders( &self, root: &Path, depth: Option<usize>, include_self: bool, ) -> Result<FolderGraph>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileGraph
impl RefUnwindSafe for FileGraph
impl Send for FileGraph
impl Sync for FileGraph
impl Unpin for FileGraph
impl UnsafeUnpin for FileGraph
impl UnwindSafe for FileGraph
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