pub struct State {
kind: Kind,
}Fields§
§kind: KindImplementations§
Source§impl State
impl State
Sourcefn detect() -> Option<Kind>
fn detect() -> Option<Kind>
The kernel for this CPU, if any. Finding it takes up to seven feature checks, each a load
and a branch. Hasher::new asks every time, and crc32fast::hash constructs a Hasher for
every call, so the answer is cached: after the first call, this is one load.
fn detect_uncached() -> Option<Kind>
pub fn new() -> Option<Self>
pub fn update(&self, state: u32, buf: &[u8]) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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