pub trait BitBucket: Default {
// Required methods
fn push(&mut self, bit: bool);
fn pop(&mut self) -> bool;
fn top(&self) -> bool;
}
Expand description
Trait for bit buckets - provides bit storage for JSON parser state. This trait is implemented for both integer and [T; N] types.
NOTE: BitBucket implementations do NOT implement depth tracking. This is the responsibility of the caller.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.