Struct strict_encoding::LargeVec
source · [−]pub struct LargeVec<T>(_)
where
T: Clone + StrictEncode + StrictDecode;
Expand description
Wrapper for vectors which may have up to u32::MAX
elements in strict
encoding representation.
Trait Implementations
sourceimpl<T> AsMut<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> AsMut<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> AsRef<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> AsRef<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> Borrow<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> Borrow<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> BorrowMut<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> BorrowMut<<LargeVec<T> as Wrapper>::Inner> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourcefn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl<T: Clone> Clone for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: Clone> Clone for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T: Debug> Debug for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: Debug> Debug for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> Deref for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> Deref for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> DerefMut for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> DerefMut for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> From<LargeVec<T>> for Vec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> From<LargeVec<T>> for Vec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T> From<Vec<T, Global>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> From<Vec<T, Global>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T: Hash> Hash for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: Hash> Hash for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T: Ord> Ord for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: Ord> Ord for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T: PartialEq> PartialEq<LargeVec<T>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: PartialEq> PartialEq<LargeVec<T>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourceimpl<T: PartialOrd> PartialOrd<LargeVec<T>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T: PartialOrd> PartialOrd<LargeVec<T>> for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourcefn partial_cmp(&self, other: &LargeVec<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &LargeVec<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<T> StrictDecode for LargeVec<T> where
T: Clone + StrictDecode + StrictEncode,
impl<T> StrictDecode for LargeVec<T> where
T: Clone + StrictDecode + StrictEncode,
sourcefn strict_decode<D: Read>(d: D) -> Result<Self, Error>
fn strict_decode<D: Read>(d: D) -> Result<Self, Error>
Decode with the given std::io::Read
instance; must either
construct an instance or return implementation-specific error type. Read more
sourcefn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
fn strict_deserialize(data: impl AsRef<[u8]>) -> Result<Self, Error>
Tries to deserialize byte array into the current type using
StrictDecode::strict_decode
Read more
sourceimpl<T> StrictEncode for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> StrictEncode for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourcefn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
fn strict_encode<E: Write>(&self, e: E) -> Result<usize, Error>
Encode with the given std::io::Write
instance; must return result
with either amount of bytes encoded – or implementation-specific
error type. Read more
sourcefn strict_serialize(&self) -> Result<Vec<u8>, Error>
fn strict_serialize(&self) -> Result<Vec<u8>, Error>
Serializes data as a byte array using StrictEncode::strict_encode
function Read more
sourceimpl<T> Wrapper for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> Wrapper for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
sourcefn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper type Read more
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl<T: Eq> Eq for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> StructuralEq for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
impl<T> StructuralPartialEq for LargeVec<T> where
T: Clone + StrictEncode + StrictDecode,
Auto Trait Implementations
impl<T> RefUnwindSafe for LargeVec<T> where
T: RefUnwindSafe,
impl<T> Send for LargeVec<T> where
T: Send,
impl<T> Sync for LargeVec<T> where
T: Sync,
impl<T> Unpin for LargeVec<T> where
T: Unpin,
impl<T> UnwindSafe for LargeVec<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more