struct LimbBuffer<'a> {
buf: &'a [u8],
cur_idx: usize,
cur_limb: u64,
next_limb: u64,
}Expand description
This struct represents a view of a sequence of bytes as a sequence of
u64 limbs in little-endian byte order. It maintains a current index, and
allows access to the limb at that index and the one following it. Bytes
beyond the end of the original buffer are treated as zero.
Fields§
§buf: &'a [u8]§cur_idx: usize§cur_limb: u64§next_limb: u64Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LimbBuffer<'a>
impl<'a> RefUnwindSafe for LimbBuffer<'a>
impl<'a> Send for LimbBuffer<'a>
impl<'a> Sync for LimbBuffer<'a>
impl<'a> Unpin for LimbBuffer<'a>
impl<'a> UnwindSafe for LimbBuffer<'a>
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