pub struct RollingHashExt {
pub base: u64,
pub modulus: u64,
}Expand description
Rolling hash for Rabin-Karp pattern matching.
Fields§
§base: u64Base for the polynomial hash.
modulus: u64Modulus for the hash.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RollingHashExt
impl RefUnwindSafe for RollingHashExt
impl Send for RollingHashExt
impl Sync for RollingHashExt
impl Unpin for RollingHashExt
impl UnsafeUnpin for RollingHashExt
impl UnwindSafe for RollingHashExt
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