Struct cargo_lock::dependency::tree::Tree
source · 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 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