22 lines
555 B
Rust
22 lines
555 B
Rust
/*! Specialized containers.
|
|
|
|
The `storage` module provides containers for use in other modules.
|
|
The containers support both pre-allocated memory, without the `std`
|
|
or `alloc` crates being available, and heap-allocated memory.
|
|
*/
|
|
|
|
mod assembler;
|
|
mod packet_buffer;
|
|
mod ring_buffer;
|
|
|
|
pub use self::assembler::Assembler;
|
|
pub use self::packet_buffer::{PacketBuffer, PacketMetadata};
|
|
pub use self::ring_buffer::RingBuffer;
|
|
|
|
/// A trait for setting a value to a known state.
|
|
///
|
|
/// In-place analog of Default.
|
|
pub trait Resettable {
|
|
fn reset(&mut self);
|
|
}
|