pub struct RiceDecoder { /* private fields */ }Expand description
Rice-Golomb decoder for the Safe Browsing API
In Rice encoding, each number n is encoded as q and r where n = (q << k) + r. k is the Rice parameter (0..32).
The quotient q is encoded in unary: a sequence of q ones followed by a zero. The remainder r is encoded as a k-bit unsigned integer.
Implementations§
Auto Trait Implementations§
impl Freeze for RiceDecoder
impl RefUnwindSafe for RiceDecoder
impl Send for RiceDecoder
impl Sync for RiceDecoder
impl Unpin for RiceDecoder
impl UnsafeUnpin for RiceDecoder
impl UnwindSafe for RiceDecoder
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