[−][src]Struct highway::AvxHash
AVX empowered implementation that will only work on x86_64
with avx2 enabled at the CPU
level.
Implementations
impl AvxHash
[src]
pub unsafe fn force_new(key: Key) -> Self
[src]
Creates a new AvxHash
while circumventing the runtime check for avx2.
Safety
If called on a machine without avx2, 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 avx2 capabilities
pub fn new(key: Key) -> Option<Self>
[src]
Creates a new AvxHash
if the avx2 feature is detected.
Trait Implementations
impl Clone for AvxHash
[src]
impl Debug for AvxHash
[src]
impl Default for AvxHash
[src]
impl Hasher for AvxHash
[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 AvxHash
[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 AvxHash
[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 AvxHash
impl Send for AvxHash
impl Sync for AvxHash
impl Unpin for AvxHash
impl UnwindSafe for AvxHash
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>,