#[repr(u8)]pub enum GasDepthFunction {
Never = 0,
Always = 1,
Greater = 2,
Less = 3,
}Expand description
Gas depth functions.
Variants§
Never = 0
Never pass (0).
Always = 1
Always pass (1).
Greater = 2
Pass if greater than (1-X).
Less = 3
Pass if less than (X).
Trait Implementations§
Source§impl Clone for GasDepthFunction
impl Clone for GasDepthFunction
Source§fn clone(&self) -> GasDepthFunction
fn clone(&self) -> GasDepthFunction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GasDepthFunction
impl Debug for GasDepthFunction
Source§impl PartialEq for GasDepthFunction
impl PartialEq for GasDepthFunction
Source§impl TryFrom<u8> for GasDepthFunction
impl TryFrom<u8> for GasDepthFunction
impl Copy for GasDepthFunction
impl Eq for GasDepthFunction
impl StructuralPartialEq for GasDepthFunction
Auto Trait Implementations§
impl Freeze for GasDepthFunction
impl RefUnwindSafe for GasDepthFunction
impl Send for GasDepthFunction
impl Sync for GasDepthFunction
impl Unpin for GasDepthFunction
impl UnwindSafe for GasDepthFunction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)