Struct bdk_chain::bitcoin::consensus::encode::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
§fn eq(&self, other: &CheckedData) -> bool
fn eq(&self, other: &CheckedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§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