pub struct ProposalShortIdVec(/* private fields */);
Implementations§
Source§impl ProposalShortIdVec
impl ProposalShortIdVec
Sourcepub fn calc_proposals_hash(&self) -> Byte32
pub fn calc_proposals_hash(&self) -> Byte32
Source§impl ProposalShortIdVec
impl ProposalShortIdVec
pub const ITEM_SIZE: usize = 10usize
pub fn total_size(&self) -> usize
pub fn item_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, idx: usize) -> Option<ProposalShortId>
pub fn get_unchecked(&self, idx: usize) -> ProposalShortId
pub fn as_reader<'r>(&'r self) -> ProposalShortIdVecReader<'r>
Trait Implementations§
Source§impl Clone for ProposalShortIdVec
impl Clone for ProposalShortIdVec
Source§fn clone(&self) -> ProposalShortIdVec
fn clone(&self) -> ProposalShortIdVec
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 Debug for ProposalShortIdVec
impl Debug for ProposalShortIdVec
Source§impl Default for ProposalShortIdVec
impl Default for ProposalShortIdVec
Source§fn default() -> ProposalShortIdVec
fn default() -> ProposalShortIdVec
Returns the “default value” for a type. Read more
Source§impl Display for ProposalShortIdVec
impl Display for ProposalShortIdVec
Source§impl Entity for ProposalShortIdVec
impl Entity for ProposalShortIdVec
const NAME: &'static str = "ProposalShortIdVec"
type Builder = ProposalShortIdVecBuilder
fn new_unchecked(data: Bytes) -> ProposalShortIdVec
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<ProposalShortIdVec, VerificationError>
fn from_compatible_slice( slice: &[u8], ) -> Result<ProposalShortIdVec, VerificationError>
fn new_builder() -> <ProposalShortIdVec as Entity>::Builder
fn as_builder(self) -> <ProposalShortIdVec as Entity>::Builder
Source§impl IntoIterator for ProposalShortIdVec
impl IntoIterator for ProposalShortIdVec
Source§type Item = ProposalShortId
type Item = ProposalShortId
The type of the elements being iterated over.
Source§type IntoIter = ProposalShortIdVecIterator
type IntoIter = ProposalShortIdVecIterator
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ProposalShortIdVec as IntoIterator>::IntoIter
fn into_iter(self) -> <ProposalShortIdVec as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl !Freeze for ProposalShortIdVec
impl RefUnwindSafe for ProposalShortIdVec
impl Send for ProposalShortIdVec
impl Sync for ProposalShortIdVec
impl Unpin for ProposalShortIdVec
impl UnwindSafe for ProposalShortIdVec
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> PackVec<ProposalShortIdVec, ProposalShortId> for Twhere
T: IntoIterator<Item = ProposalShortId>,
impl<T> PackVec<ProposalShortIdVec, ProposalShortId> for Twhere
T: IntoIterator<Item = ProposalShortId>,
Source§fn pack(self) -> ProposalShortIdVec
fn pack(self) -> ProposalShortIdVec
Packs a vector of binary data into one binary data.