Struct ckb_types::packed::ProposalShortIdVec
source · [−]pub struct ProposalShortIdVec(_);
Implementations
sourceimpl 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>
sourceimpl ProposalShortIdVec
impl ProposalShortIdVec
sourcepub fn calc_proposals_hash(&self) -> Byte32
pub fn calc_proposals_hash(&self) -> Byte32
Trait Implementations
sourceimpl Clone for ProposalShortIdVec
impl Clone for ProposalShortIdVec
sourcefn clone(&self) -> ProposalShortIdVec
fn clone(&self) -> ProposalShortIdVec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProposalShortIdVec
impl Debug for ProposalShortIdVec
sourceimpl Default for ProposalShortIdVec
impl Default for ProposalShortIdVec
sourceimpl Display for ProposalShortIdVec
impl Display for ProposalShortIdVec
sourceimpl 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]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[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
sourceimpl 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?
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
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
sourceimpl<T> PackVec<ProposalShortIdVec, ProposalShortId> for T where
T: IntoIterator<Item = ProposalShortId>,
impl<T> PackVec<ProposalShortIdVec, ProposalShortId> for T where
T: IntoIterator<Item = ProposalShortId>,
sourcefn pack(self) -> ProposalShortIdVec
fn pack(self) -> ProposalShortIdVec
Packs a vector of binary data into one binary data.