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
sourceimpl 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
) -> Result<()>
pub fn render(
&self,
w: &mut impl Write,
node_index: NodeIndex,
direction: EdgeDirection
) -> Result<()>
sourcepub fn render_with_symbols(
&self,
w: &mut impl Write,
node_index: NodeIndex,
direction: EdgeDirection,
symbols: &Symbols
) -> Result<()>
pub fn render_with_symbols(
&self,
w: &mut impl Write,
node_index: NodeIndex,
direction: EdgeDirection,
symbols: &Symbols
) -> 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more