pub struct EthGas(/* private fields */);Expand description
Ethereum gas type which wraps an underlying u64.
Implementations§
Trait Implementations§
Source§impl AddAssign for EthGas
impl AddAssign for EthGas
Source§fn add_assign(&mut self, rhs: EthGas)
fn add_assign(&mut self, rhs: EthGas)
Performs the
+= operation. Read moreSource§impl BorshDeserialize for EthGas
impl BorshDeserialize for EthGas
fn deserialize_reader<__R>(reader: &mut __R) -> Result<EthGas, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for EthGas
impl BorshSerialize for EthGas
Source§impl<'de> Deserialize<'de> for EthGas
impl<'de> Deserialize<'de> for EthGas
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthGas, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthGas, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for EthGas
impl Ord for EthGas
Source§impl PartialOrd for EthGas
impl PartialOrd for EthGas
Source§impl Serialize for EthGas
impl Serialize for EthGas
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EthGas
impl Eq for EthGas
impl StructuralPartialEq for EthGas
Auto Trait Implementations§
impl Freeze for EthGas
impl RefUnwindSafe for EthGas
impl Send for EthGas
impl Sync for EthGas
impl Unpin for EthGas
impl UnwindSafe for EthGas
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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