#[repr(C)]pub struct ErrorWithHash {
pub error_code: ErrorCode,
pub hash: Hash,
}Expand description
Represents type defining concatenated hash with error code. 36 bytes.
Fields§
§error_code: ErrorCode§hash: HashImplementations§
Source§impl ErrorWithHash
impl ErrorWithHash
pub fn as_mut_ptr(&mut self) -> *mut Self
Trait Implementations§
Source§impl Clone for ErrorWithHash
impl Clone for ErrorWithHash
Source§fn clone(&self) -> ErrorWithHash
fn clone(&self) -> ErrorWithHash
Returns a duplicate 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 ErrorWithHash
impl Debug for ErrorWithHash
Source§impl Default for ErrorWithHash
impl Default for ErrorWithHash
Source§fn default() -> ErrorWithHash
fn default() -> ErrorWithHash
Returns the “default value” for a type. Read more
impl Copy for ErrorWithHash
impl Pod for ErrorWithHash
Auto Trait Implementations§
impl Freeze for ErrorWithHash
impl RefUnwindSafe for ErrorWithHash
impl Send for ErrorWithHash
impl Sync for ErrorWithHash
impl Unpin for ErrorWithHash
impl UnwindSafe for ErrorWithHash
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.