#[repr(u8)]pub enum EraName {
Byron = 1,
Shelley = 2,
Allegra = 3,
Mary = 4,
Alonzo = 5,
Babbage = 6,
Conway = 7,
Dijkstra = 8,
}Variants§
Implementations§
Source§impl EraName
impl EraName
pub const fn is_tagged_on_network(self) -> bool
pub const fn as_str(self) -> &'static str
pub const fn header_variant(self) -> u8
pub const fn from_header_variant(variant: u8) -> Result<EraName, EraNameError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EraName
impl<'de> Deserialize<'de> for EraName
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for EraName
impl Ord for EraName
Source§impl PartialOrd for EraName
impl PartialOrd for EraName
impl Copy for EraName
impl Eq for EraName
impl StructuralPartialEq for EraName
Auto Trait Implementations§
impl Freeze for EraName
impl RefUnwindSafe for EraName
impl Send for EraName
impl Sync for EraName
impl Unpin for EraName
impl UnsafeUnpin for EraName
impl UnwindSafe for EraName
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