Struct ckb_types::packed::ProposalShortIdVec
source · 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
type Builder = ProposalShortIdVecBuilder
const NAME: &'static str = "ProposalShortIdVec"
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
§type Item = ProposalShortId
type Item = ProposalShortId
The type of the elements being iterated over.
§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 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> 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.