Struct ckb_types::packed::ProposalShortId
source · [−]pub struct ProposalShortId(_);
Implementations
sourceimpl ProposalShortId
impl ProposalShortId
pub const TOTAL_SIZE: usize = 10usize
pub const ITEM_SIZE: usize = 1usize
pub const ITEM_COUNT: usize = 10usize
pub fn nth0(&self) -> Byte
pub fn nth1(&self) -> Byte
pub fn nth2(&self) -> Byte
pub fn nth3(&self) -> Byte
pub fn nth4(&self) -> Byte
pub fn nth5(&self) -> Byte
pub fn nth6(&self) -> Byte
pub fn nth7(&self) -> Byte
pub fn nth8(&self) -> Byte
pub fn nth9(&self) -> Byte
pub fn raw_data(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> ProposalShortIdReader<'r>
sourceimpl ProposalShortId
impl ProposalShortId
sourcepub fn serialized_size() -> usize
pub fn serialized_size() -> usize
Return the serialized size
Trait Implementations
sourceimpl Clone for ProposalShortId
impl Clone for ProposalShortId
sourcefn clone(&self) -> ProposalShortId
fn clone(&self) -> ProposalShortId
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 ProposalShortId
impl Debug for ProposalShortId
sourceimpl Default for ProposalShortId
impl Default for ProposalShortId
sourceimpl Display for ProposalShortId
impl Display for ProposalShortId
sourceimpl Entity for ProposalShortId
impl Entity for ProposalShortId
type Builder = ProposalShortIdBuilder
const NAME: &'static str = "ProposalShortId"
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 Hash for ProposalShortId
impl Hash for ProposalShortId
sourceimpl LowerHex for ProposalShortId
impl LowerHex for ProposalShortId
sourceimpl Pack<ProposalShortId> for [u8; 10]
impl Pack<ProposalShortId> for [u8; 10]
sourcefn pack(&self) -> ProposalShortId
fn pack(&self) -> ProposalShortId
Packs a rust type into binary data.
sourceimpl PartialEq<ProposalShortId> for ProposalShortId
impl PartialEq<ProposalShortId> for ProposalShortId
impl Eq for ProposalShortId
Auto Trait Implementations
impl RefUnwindSafe for ProposalShortId
impl Send for ProposalShortId
impl Sync for ProposalShortId
impl Unpin for ProposalShortId
impl UnwindSafe for ProposalShortId
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.