[−][src]Struct highway::SseHash
SSE empowered implementation that will only work on x86_64
with sse 4.1 enabled at the CPU
level.
Implementations
impl SseHash
[src]
pub unsafe fn force_new(key: Key) -> Self
[src]
Creates a new SseHash
while circumventing the runtime check for sse4.1.
Safety
If called on a machine without sse4.1, a segfault will occur. Only use if you have control over the deployment environment and have either benchmarked that the runtime check is significant or are unable to check for sse4.1 capabilities
pub fn new(key: Key) -> Option<Self>
[src]
Create a new SseHash
if the sse4.1 feature is detected
Trait Implementations
impl Clone for SseHash
[src]
impl Debug for SseHash
[src]
impl Default for SseHash
[src]
impl Hasher for SseHash
[src]
pub fn write(&mut self, bytes: &[u8])
[src]
pub fn finish(&self) -> u64
[src]
pub fn write_u8(&mut self, i: u8)
1.3.0[src]
pub fn write_u16(&mut self, i: u16)
1.3.0[src]
pub fn write_u32(&mut self, i: u32)
1.3.0[src]
pub fn write_u64(&mut self, i: u64)
1.3.0[src]
pub fn write_u128(&mut self, i: u128)
1.26.0[src]
pub fn write_usize(&mut self, i: usize)
1.3.0[src]
pub fn write_i8(&mut self, i: i8)
1.3.0[src]
pub fn write_i16(&mut self, i: i16)
1.3.0[src]
pub fn write_i32(&mut self, i: i32)
1.3.0[src]
pub fn write_i64(&mut self, i: i64)
1.3.0[src]
pub fn write_i128(&mut self, i: i128)
1.26.0[src]
pub fn write_isize(&mut self, i: isize)
1.3.0[src]
impl HighwayHash for SseHash
[src]
pub fn append(&mut self, data: &[u8])
[src]
pub fn finalize64(self) -> u64
[src]
pub fn finalize128(self) -> [u64; 2]
[src]
pub fn finalize256(self) -> [u64; 4]
[src]
pub fn hash64(self, data: &[u8]) -> u64
[src]
pub fn hash128(self, data: &[u8]) -> [u64; 2]
[src]
pub fn hash256(self, data: &[u8]) -> [u64; 4]
[src]
impl Write for SseHash
[src]
pub fn write(&mut self, bytes: &[u8]) -> Result<usize>
[src]
pub fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SseHash
impl Send for SseHash
impl Sync for SseHash
impl Unpin for SseHash
impl UnwindSafe for SseHash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,