pub struct GitRabin(/* private fields */);Trait Implementations§
Source§impl RollingHash for GitRabin
impl RollingHash for GitRabin
const WINDOW: usize = RABIN_WINDOW
type H = u32
fn from_slice(data: &[u8]) -> Self
fn roll_once(&mut self, new: u8, old: u8)
fn empty() -> Self::H
fn value(&self) -> Self::H
fn value_from_slice(data: &[u8]) -> Self::H
fn reset_with(&mut self, data: &[u8])
fn apply_mask(hash: Self::H, mask: u32) -> usize
Auto Trait Implementations§
impl Forget for GitRabin
impl Freeze for GitRabin
impl Move for GitRabin
impl RefUnwindSafe for GitRabin
impl Send for GitRabin
impl Sync for GitRabin
impl Unpin for GitRabin
impl UnsafeUnpin for GitRabin
impl UnwindSafe for GitRabin
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