#[repr(transparent)]pub struct ChachaHwFlags(pub u32);
Expand description
Hardware configuration of the CHACHA engine. Reset value holds the supported features.
Tuple Fields§
§0: u32
Implementations§
Source§impl ChachaHwFlags
impl ChachaHwFlags
Sourcepub const fn chacha_exists(&self) -> bool
pub const fn chacha_exists(&self) -> bool
If this flag is set, the engine include ChaCha support
Sourcepub fn set_chacha_exists(&mut self, val: bool)
pub fn set_chacha_exists(&mut self, val: bool)
If this flag is set, the engine include ChaCha support
Sourcepub const fn salsa_exists(&self) -> bool
pub const fn salsa_exists(&self) -> bool
If this flag is set, the engine include Salsa support
Sourcepub fn set_salsa_exists(&mut self, val: bool)
pub fn set_salsa_exists(&mut self, val: bool)
If this flag is set, the engine include Salsa support
Sourcepub const fn fast_chacha(&self) -> bool
pub const fn fast_chacha(&self) -> bool
If this flag is set, the next matrix calculated when the current one is written to data output path.
Sourcepub fn set_fast_chacha(&mut self, val: bool)
pub fn set_fast_chacha(&mut self, val: bool)
If this flag is set, the next matrix calculated when the current one is written to data output path.
Trait Implementations§
Source§impl Clone for ChachaHwFlags
impl Clone for ChachaHwFlags
Source§fn clone(&self) -> ChachaHwFlags
fn clone(&self) -> ChachaHwFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ChachaHwFlags
impl Default for ChachaHwFlags
Source§fn default() -> ChachaHwFlags
fn default() -> ChachaHwFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChachaHwFlags
impl PartialEq for ChachaHwFlags
impl Copy for ChachaHwFlags
impl Eq for ChachaHwFlags
impl StructuralPartialEq for ChachaHwFlags
Auto Trait Implementations§
impl Freeze for ChachaHwFlags
impl RefUnwindSafe for ChachaHwFlags
impl Send for ChachaHwFlags
impl Sync for ChachaHwFlags
impl Unpin for ChachaHwFlags
impl UnwindSafe for ChachaHwFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)