ckb_gen_types/generated/
mod.rs

1//! Generated packed bytes wrappers.
2
3#![doc(hidden)]
4#![allow(warnings)]
5#![allow(missing_docs)]
6
7#[allow(clippy::all)]
8mod blockchain;
9#[allow(clippy::all)]
10mod extensions;
11#[allow(clippy::all)]
12mod protocols;
13
14pub mod packed {
15    //! Various newtypes of [`bytes::Bytes`], and their associated types.
16    //!
17    //! These newtypes are thread-safe and immutable binary data with a series of associated methods
18    //! to read and convert themselves.
19    //!
20    //! These newtypes are generated by [Molecule] from [schemas].
21    //!
22    //! # References:
23    //! - [Using the Newtype Pattern to Implement External Traits on External Types](https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types)
24    //! - [Using the Newtype Pattern for Type Safety and Abstraction](https://doc.rust-lang.org/book/ch19-04-advanced-types.html#using-the-newtype-pattern-for-type-safety-and-abstraction)
25    //!
26    //! [`bytes::Bytes`]: https://docs.rs/bytes/*/bytes/#bytes
27    //! [Molecule]: https://github.com/nervosnetwork/molecule
28    //! [schemas]: https://github.com/nervosnetwork/molecule/blob/df1fdce/docs/schema_language.md#molecule-schema-language
29    pub use molecule::prelude::{Byte, ByteReader};
30
31    pub use super::blockchain::*;
32    pub use super::extensions::*;
33    pub use super::protocols::*;
34}