Enum xkcp_sys::HashReturn
source · #[repr(u32)]pub enum HashReturn {
KECCAK_SUCCESS = 0,
KECCAK_FAIL = 1,
KECCAK_BAD_HASHLEN = 2,
}
Variants§
Trait Implementations§
source§impl Clone for HashReturn
impl Clone for HashReturn
source§fn clone(&self) -> HashReturn
fn clone(&self) -> HashReturn
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 Debug for HashReturn
impl Debug for HashReturn
source§impl Hash for HashReturn
impl Hash for HashReturn
source§impl PartialEq<HashReturn> for HashReturn
impl PartialEq<HashReturn> for HashReturn
source§fn eq(&self, other: &HashReturn) -> bool
fn eq(&self, other: &HashReturn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HashReturn
impl StructuralEq for HashReturn
impl StructuralPartialEq for HashReturn
Auto Trait Implementations§
impl RefUnwindSafe for HashReturn
impl Send for HashReturn
impl Sync for HashReturn
impl Unpin for HashReturn
impl UnwindSafe for HashReturn
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
KECCAK_SUCCESS
: 0 bytesKECCAK_FAIL
: 0 bytesKECCAK_BAD_HASHLEN
: 0 bytes