Struct CheckedData
pub struct CheckedData { /* private fields */ }
Expand description
Data and a 4-byte checksum.
Implementations§
§impl CheckedData
impl CheckedData
pub fn new(data: Vec<u8>) -> CheckedData
pub fn new(data: Vec<u8>) -> CheckedData
Creates a new CheckedData
computing the checksum of given data.
Trait Implementations§
§impl Clone for CheckedData
impl Clone for CheckedData
§fn clone(&self) -> CheckedData
fn clone(&self) -> CheckedData
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 more§impl Debug for CheckedData
impl Debug for CheckedData
§impl Decodable for CheckedData
impl Decodable for CheckedData
§impl Encodable for CheckedData
impl Encodable for CheckedData
§impl PartialEq for CheckedData
impl PartialEq for CheckedData
impl Eq for CheckedData
impl StructuralPartialEq for CheckedData
Auto Trait Implementations§
impl Freeze for CheckedData
impl RefUnwindSafe for CheckedData
impl Send for CheckedData
impl Sync for CheckedData
impl Unpin for CheckedData
impl UnwindSafe for CheckedData
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more