pub struct Tree { /* private fields */ }
Available on crate feature
dependency-tree
only.Expand description
Dependency tree computed from a Cargo.lock
file
Implementations§
Source§impl Tree
impl Tree
Sourcepub fn new(lockfile: &Lockfile) -> Result<Self, Error>
pub fn new(lockfile: &Lockfile) -> Result<Self, Error>
Construct a new dependency tree for the given Lockfile
.
Sourcepub fn render(
&self,
w: &mut impl Write,
node_index: NodeIndex,
direction: EdgeDirection,
exact: bool,
) -> Result<()>
pub fn render( &self, w: &mut impl Write, node_index: NodeIndex, direction: EdgeDirection, exact: bool, ) -> Result<()>
Sourcepub fn render_with_symbols(
&self,
w: &mut impl Write,
node_index: NodeIndex,
direction: EdgeDirection,
symbols: &Symbols,
exact: bool,
) -> Result<()>
pub fn render_with_symbols( &self, w: &mut impl Write, node_index: NodeIndex, direction: EdgeDirection, symbols: &Symbols, exact: bool, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)