pub enum AnyBlockVersion {
Supported(BlockVersion),
Unsupported(u8),
}
Variants§
Supported(BlockVersion)
Unsupported(u8)
Implementations§
source§impl AnyBlockVersion
impl AnyBlockVersion
pub fn try_into_block_version(self) -> Option<BlockVersion>
Trait Implementations§
source§impl Arbitrary for AnyBlockVersion
impl Arbitrary for AnyBlockVersion
source§impl Clone for AnyBlockVersion
impl Clone for AnyBlockVersion
source§fn clone(&self) -> AnyBlockVersion
fn clone(&self) -> AnyBlockVersion
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 AnyBlockVersion
impl Debug for AnyBlockVersion
source§impl From<AnyBlockVersion> for u8
impl From<AnyBlockVersion> for u8
source§fn from(block_version: AnyBlockVersion) -> u8
fn from(block_version: AnyBlockVersion) -> u8
Converts to this type from the input type.
source§impl From<BlockVersion> for AnyBlockVersion
impl From<BlockVersion> for AnyBlockVersion
source§fn from(version: BlockVersion) -> Self
fn from(version: BlockVersion) -> Self
Converts to this type from the input type.
source§impl From<u8> for AnyBlockVersion
impl From<u8> for AnyBlockVersion
source§impl PartialEq<AnyBlockVersion> for AnyBlockVersion
impl PartialEq<AnyBlockVersion> for AnyBlockVersion
source§fn eq(&self, other: &AnyBlockVersion) -> bool
fn eq(&self, other: &AnyBlockVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BlockVersion> for AnyBlockVersion
impl PartialEq<BlockVersion> for AnyBlockVersion
source§fn eq(&self, other: &BlockVersion) -> bool
fn eq(&self, other: &BlockVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AnyBlockVersion
impl Eq for AnyBlockVersion
impl StructuralEq for AnyBlockVersion
impl StructuralPartialEq for AnyBlockVersion
Auto Trait Implementations§
impl RefUnwindSafe for AnyBlockVersion
impl Send for AnyBlockVersion
impl Sync for AnyBlockVersion
impl Unpin for AnyBlockVersion
impl UnwindSafe for AnyBlockVersion
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