Struct ckb_types::packed::ProposalShortIdVec
source · pub struct ProposalShortIdVec(_);
Implementations§
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>
source§impl ProposalShortIdVec
impl ProposalShortIdVec
sourcepub fn calc_proposals_hash(&self) -> Byte32
pub fn calc_proposals_hash(&self) -> Byte32
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§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) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
source§impl IntoIterator for ProposalShortIdVec
impl IntoIterator for ProposalShortIdVec
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.