pub enum GasScheduleVersion {
V1 = 1,
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5,
V6 = 6,
V7 = 7,
V8 = 8,
V9 = 9,
}Variants§
Implementations§
Source§impl GasScheduleVersion
impl GasScheduleVersion
pub fn from_version_num(version: usize) -> Self
pub fn toml_str(&self) -> &'static str
pub fn load_gas_schedule(&self) -> GasSchedule
Trait Implementations§
Source§impl Clone for GasScheduleVersion
impl Clone for GasScheduleVersion
Source§fn clone(&self) -> GasScheduleVersion
fn clone(&self) -> GasScheduleVersion
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 moreimpl Copy for GasScheduleVersion
Source§impl Debug for GasScheduleVersion
impl Debug for GasScheduleVersion
Source§impl Default for GasScheduleVersion
impl Default for GasScheduleVersion
Source§fn default() -> GasScheduleVersion
fn default() -> GasScheduleVersion
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GasScheduleVersion
impl RefUnwindSafe for GasScheduleVersion
impl Send for GasScheduleVersion
impl Sync for GasScheduleVersion
impl Unpin for GasScheduleVersion
impl UnsafeUnpin for GasScheduleVersion
impl UnwindSafe for GasScheduleVersion
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