Docs.rs
hugr-core-0.14.3
hugr-core 0.14.3
Docs.rs crate page
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
aborgna-q
ss2165
cqc-alec
Dependencies
bitvec ^1.0.1
normal
bumpalo ^3.16.0
normal
cgmath ^0.18.0
normal
delegate ^0.13.0
normal
derive_more ^1.0.0
normal
downcast-rs ^2.0.1
normal
enum_dispatch ^0.3.11
normal
fxhash ^0.2.1
normal
html-escape ^0.2.13
normal
hugr-model ^0.17.1
normal
optional
indexmap ^2.3.0
normal
itertools ^0.14.0
normal
lazy_static ^1.4.0
normal
num-rational ^0.4.1
normal
paste ^1.0
normal
petgraph ^0.7.1
normal
portgraph ^0.13.0
normal
regex ^1.9.5
normal
semver ^1.0.23
normal
serde ^1.0
normal
serde_json ^1.0.97
normal
serde_yaml ^0.9.19
normal
optional
smol_str ^0.3.1
normal
strum ^0.26.1
normal
strum_macros ^0.26.1
normal
thiserror ^2.0.6
normal
typetag ^0.2.7
normal
cool_asserts ^2.0.3
dev
insta ^1.34.0
dev
jsonschema ^0.28.1
dev
proptest ^1.4.0
dev
proptest-derive ^0.5.0
dev
regex-syntax ^0.8.3
dev
rstest ^0.24.0
dev
serde_yaml ^0.9.34
dev
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
hugr_
core
0.14.3
In hugr_
core::
utils
hugr_core
::
utils
Function
depth
Copy item path
Source
pub fn depth(h: &
Hugr
, n:
Node
) ->
u32
Expand description
Calculate the depth of a node in the hierarchy.