pub struct BitVec<W>(/* private fields */);Expand description
Lean’s BitVec w as the unsigned integer or the limbs W. Lean keeps a bit vector as the
natural number it encodes, so a value crosses with one copy of its limbs, and one that is
below 2^63 without an allocation.
Trait Implementations§
Source§impl<W: Word> Codec for BitVec<W>
impl<W: Word> Codec for BitVec<W>
Source§fn into_lean(value: W) -> Value<Self>
fn into_lean(value: W) -> Value<Self>
The Lean value of a Rust value that is given up. What can move is moved.
Source§fn to_lean(value: &W) -> Value<Self>
fn to_lean(value: &W) -> Value<Self>
The Lean value of a Rust value that stays with the caller. A copy.
Auto Trait Implementations§
impl<W> Forget for BitVec<W>
impl<W> Freeze for BitVec<W>where
PhantomData<W>: Freeze,
impl<W> Move for BitVec<W>
impl<W> RefUnwindSafe for BitVec<W>where
W: RefUnwindSafe,
impl<W> Send for BitVec<W>where
W: Send,
impl<W> Sync for BitVec<W>where
W: Sync,
impl<W> Unpin for BitVec<W>where
W: Unpin,
impl<W> UnsafeUnpin for BitVec<W>where
PhantomData<W>: UnsafeUnpin,
impl<W> UnwindSafe for BitVec<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more