pub type BlockHeaderBlob = StorableVec<u8>;
Expand description
A serialized block header
Aliased Type§
struct BlockHeaderBlob(pub Vec<u8>);
Fields§
§0: Vec<u8>
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: 24 bytes
Trait Implementations
Source§impl<T> Borrow<[T]> for StorableVec<T>
impl<T> Borrow<[T]> for StorableVec<T>
Source§impl<T> Clone for StorableVec<T>where
T: Clone,
impl<T> Clone for StorableVec<T>where
T: Clone,
Source§fn clone(&self) -> StorableVec<T>
fn clone(&self) -> StorableVec<T>
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<T> Debug for StorableVec<T>where
T: Debug,
impl<T> Debug for StorableVec<T>where
T: Debug,
Source§impl<T> Deref for StorableVec<T>
impl<T> Deref for StorableVec<T>
Source§impl<T> Hash for StorableVec<T>where
T: Hash,
impl<T> Hash for StorableVec<T>where
T: Hash,
Source§impl<T> Key for StorableVec<T>
impl<T> Key for StorableVec<T>
Source§const KEY_COMPARE: KeyCompare = KeyCompare::Default
const KEY_COMPARE: KeyCompare = KeyCompare::Default
Source§impl<T> Ord for StorableVec<T>where
T: Ord,
impl<T> Ord for StorableVec<T>where
T: Ord,
Source§fn cmp(&self, other: &StorableVec<T>) -> Ordering
fn cmp(&self, other: &StorableVec<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for StorableVec<T>where
T: PartialEq,
impl<T> PartialEq for StorableVec<T>where
T: PartialEq,
Source§impl<T> PartialOrd for StorableVec<T>where
T: PartialOrd,
impl<T> PartialOrd for StorableVec<T>where
T: PartialOrd,
Source§impl<T> Storable for StorableVec<T>
impl<T> Storable for StorableVec<T>
Source§fn from_bytes(bytes: &[u8]) -> StorableVec<T>
fn from_bytes(bytes: &[u8]) -> StorableVec<T>
This always allocates a new Vec<T>
,
casting bytes
into a vector of type T
.
Source§impl<T> TransparentWrapper<Vec<T>> for StorableVec<T>
impl<T> TransparentWrapper<Vec<T>> for StorableVec<T>
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Convert a slice to the inner type into a slice to the wrapper type.
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Source§fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
Convert a slice to the wrapped type into a slice to the inner type.
Source§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
Convert a mutable slice to the wrapped type into a mutable slice to the
inner type.