Docs.rs
ckb-types-0.119.0
ckb-types 0.119.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
doitian
Dependencies
bit-vec ^0.6.3
normal
bytes ^1
normal
ckb-channel =0.119.0
normal
ckb-constant =0.119.0
normal
ckb-error =0.119.0
normal
ckb-fixed-hash =0.119.0
normal
ckb-gen-types =0.119.0
normal
ckb-hash =0.119.0
normal
ckb-merkle-mountain-range ^0.5.2
normal
ckb-occupied-capacity =0.119.0
normal
ckb-rational =0.119.0
normal
derive_more ^0.99.0
normal
golomb-coded-set ^0.2.0
normal
merkle-cbt ^0.3
normal
molecule ^0.8
normal
numext-fixed-uint ^0.1
normal
once_cell ^1.8.0
normal
paste ^1.0
normal
Versions
100%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ckb_
types
0.119.0
In ckb_
types::
utilities
ckb_types
::
utilities
Function
difficulty_to_compact
Copy item path
Source
pub fn difficulty_to_compact(difficulty:
U256
) ->
u32
Expand description
Converts difficulty into the compact format.