Trait BitStack

Source
pub trait BitStack: BitWrite {
    // Required methods
    fn push(&mut self, value: bool);
    fn pop(&mut self) -> Option<bool>;
}

Required Methods§

Source

fn push(&mut self, value: bool)

Source

fn pop(&mut self) -> Option<bool>

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.

Implementors§

Source§

impl BitStack for BitList

Implementation of the BitStack trait for BitList.

This provides stack-like operations (push/pop) for the bit list, treating it as a stack of boolean values.