pub struct ProposalShortId(/* private fields */);Implementations§
Source§impl ProposalShortId
impl ProposalShortId
Sourcepub fn serialized_size() -> usize
pub fn serialized_size() -> usize
Return the serialized size
Source§impl ProposalShortId
impl ProposalShortId
pub const TOTAL_SIZE: usize = 10
pub const ITEM_SIZE: usize = 1
pub const ITEM_COUNT: usize = 10
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>
Trait Implementations§
Source§impl Clone for ProposalShortId
impl Clone for ProposalShortId
Source§fn clone(&self) -> ProposalShortId
fn clone(&self) -> ProposalShortId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProposalShortId
impl Debug for ProposalShortId
Source§impl Default for ProposalShortId
impl Default for ProposalShortId
Source§impl Display for ProposalShortId
impl Display for ProposalShortId
Source§impl Entity for ProposalShortId
impl Entity for ProposalShortId
const NAME: &'static str = "ProposalShortId"
type Builder = ProposalShortIdBuilder
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
impl Eq for ProposalShortId
Source§impl From<ProposalShortId> for [Byte; 10]
impl From<ProposalShortId> for [Byte; 10]
Source§fn from(value: ProposalShortId) -> Self
fn from(value: ProposalShortId) -> Self
Converts to this type from the input type.
Source§impl From<ProposalShortId> for [u8; 10]
impl From<ProposalShortId> for [u8; 10]
Source§fn from(value: ProposalShortId) -> Self
fn from(value: ProposalShortId) -> Self
Converts to this type from the input type.
Source§impl Hash for ProposalShortId
impl Hash for ProposalShortId
Source§impl LowerHex for ProposalShortId
impl LowerHex for ProposalShortId
Source§impl Ord for ProposalShortId
impl Ord for ProposalShortId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Pack<ProposalShortId> for [u8; 10]
impl Pack<ProposalShortId> for [u8; 10]
Source§fn pack(&self) -> ProposalShortId
fn pack(&self) -> ProposalShortId
Packs a rust type into binary data.
Source§impl PartialEq for ProposalShortId
impl PartialEq for ProposalShortId
Source§impl PartialOrd for ProposalShortId
impl PartialOrd for ProposalShortId
Source§impl TryFrom<&[Byte]> for ProposalShortId
impl TryFrom<&[Byte]> for ProposalShortId
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Source§impl TryFrom<&[u8]> for ProposalShortId
impl TryFrom<&[u8]> for ProposalShortId
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for ProposalShortId
impl RefUnwindSafe for ProposalShortId
impl Send for ProposalShortId
impl Sync for ProposalShortId
impl Unpin for ProposalShortId
impl UnsafeUnpin for ProposalShortId
impl UnwindSafe for ProposalShortId
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§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.