pub struct BlockHeaderPotParametersChange { /* private fields */ }Expand description
A mirror of PotParametersChange for block header purposes.
Use From or Into for converting into PotParametersChange before use.
Implementations§
Source§impl BlockHeaderPotParametersChange
impl BlockHeaderPotParametersChange
Sourcepub fn try_from_bytes(bytes: &[u8]) -> Option<(&Self, &[u8])>
pub fn try_from_bytes(bytes: &[u8]) -> Option<(&Self, &[u8])>
Get instance reference from provided bytes.
bytes do not need to be aligned.
Returns an instance and remaining bytes on success.
Trait Implementations§
Source§impl Clone for BlockHeaderPotParametersChange
impl Clone for BlockHeaderPotParametersChange
Source§fn clone(&self) -> BlockHeaderPotParametersChange
fn clone(&self) -> BlockHeaderPotParametersChange
Returns a duplicate 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 From<BlockHeaderPotParametersChange> for PotParametersChange
impl From<BlockHeaderPotParametersChange> for PotParametersChange
Source§fn from(value: BlockHeaderPotParametersChange) -> Self
fn from(value: BlockHeaderPotParametersChange) -> Self
Converts to this type from the input type.
Source§impl From<PotParametersChange> for BlockHeaderPotParametersChange
impl From<PotParametersChange> for BlockHeaderPotParametersChange
Source§fn from(value: PotParametersChange) -> Self
fn from(value: PotParametersChange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockHeaderPotParametersChange
impl PartialEq for BlockHeaderPotParametersChange
Source§fn eq(&self, other: &BlockHeaderPotParametersChange) -> bool
fn eq(&self, other: &BlockHeaderPotParametersChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BlockHeaderPotParametersChange
impl Eq for BlockHeaderPotParametersChange
impl StructuralPartialEq for BlockHeaderPotParametersChange
Auto Trait Implementations§
impl Freeze for BlockHeaderPotParametersChange
impl RefUnwindSafe for BlockHeaderPotParametersChange
impl Send for BlockHeaderPotParametersChange
impl Sync for BlockHeaderPotParametersChange
impl Unpin for BlockHeaderPotParametersChange
impl UnwindSafe for BlockHeaderPotParametersChange
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more