pub type Gas = u64;
Expand description
Represents gas type.
Trait Implementations§
1.22.0 · source§impl AddAssign<&u64> for u64
impl AddAssign<&u64> for u64
source§fn add_assign(&mut self, other: &u64)
fn add_assign(&mut self, other: &u64)
+=
operation. Read more1.8.0 · source§impl AddAssign<u64> for u64
impl AddAssign<u64> for u64
source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
+=
operation. Read more1.22.0 · source§impl BitAndAssign<&u64> for u64
impl BitAndAssign<&u64> for u64
source§fn bitand_assign(&mut self, other: &u64)
fn bitand_assign(&mut self, other: &u64)
&=
operation. Read more1.8.0 · source§impl BitAndAssign<u64> for u64
impl BitAndAssign<u64> for u64
source§fn bitand_assign(&mut self, other: u64)
fn bitand_assign(&mut self, other: u64)
&=
operation. Read more1.45.0 · source§impl BitOr<NonZeroU64> for u64
impl BitOr<NonZeroU64> for u64
§type Output = NonZeroU64
type Output = NonZeroU64
|
operator.source§fn bitor(self, rhs: NonZeroU64) -> <u64 as BitOr<NonZeroU64>>::Output
fn bitor(self, rhs: NonZeroU64) -> <u64 as BitOr<NonZeroU64>>::Output
|
operation. Read more1.22.0 · source§impl BitOrAssign<&u64> for u64
impl BitOrAssign<&u64> for u64
source§fn bitor_assign(&mut self, other: &u64)
fn bitor_assign(&mut self, other: &u64)
|=
operation. Read more1.8.0 · source§impl BitOrAssign<u64> for u64
impl BitOrAssign<u64> for u64
source§fn bitor_assign(&mut self, other: u64)
fn bitor_assign(&mut self, other: u64)
|=
operation. Read more1.22.0 · source§impl BitXorAssign<&u64> for u64
impl BitXorAssign<&u64> for u64
source§fn bitxor_assign(&mut self, other: &u64)
fn bitxor_assign(&mut self, other: &u64)
^=
operation. Read more1.8.0 · source§impl BitXorAssign<u64> for u64
impl BitXorAssign<u64> for u64
source§fn bitxor_assign(&mut self, other: u64)
fn bitxor_assign(&mut self, other: u64)
^=
operation. Read more§impl Decode for u64
impl Decode for u64
§fn decode<I>(input: &mut I) -> Result<u64, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<u64, Error>where I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
1.51.0 · source§impl Div<NonZeroU64> for u64
impl Div<NonZeroU64> for u64
1.0.0 · source§impl Div<u64> for u64
impl Div<u64> for u64
This operation rounds towards zero, truncating any fractional part of the exact result.
Panics
This operation will panic if other == 0
.
1.22.0 · source§impl DivAssign<&u64> for u64
impl DivAssign<&u64> for u64
source§fn div_assign(&mut self, other: &u64)
fn div_assign(&mut self, other: &u64)
/=
operation. Read more1.8.0 · source§impl DivAssign<u64> for u64
impl DivAssign<u64> for u64
source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
/=
operation. Read more§impl Encode for u64
impl Encode for u64
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
§fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
1.31.0 · source§impl From<NonZeroU64> for u64
impl From<NonZeroU64> for u64
source§fn from(nonzero: NonZeroU64) -> u64
fn from(nonzero: NonZeroU64) -> u64
Converts a NonZeroU64
into an u64
§impl MaxEncodedLen for u64
impl MaxEncodedLen for u64
§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
1.22.0 · source§impl MulAssign<&u64> for u64
impl MulAssign<&u64> for u64
source§fn mul_assign(&mut self, other: &u64)
fn mul_assign(&mut self, other: &u64)
*=
operation. Read more1.8.0 · source§impl MulAssign<u64> for u64
impl MulAssign<u64> for u64
source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
*=
operation. Read more1.0.0 · source§impl Ord for u64
impl Ord for u64
1.0.0 · source§impl PartialOrd<u64> for u64
impl PartialOrd<u64> for u64
source§fn le(&self, other: &u64) -> bool
fn le(&self, other: &u64) -> bool
self
and other
) and is used by the <=
operator. Read more1.51.0 · source§impl Rem<NonZeroU64> for u64
impl Rem<NonZeroU64> for u64
1.0.0 · source§impl Rem<u64> for u64
impl Rem<u64> for u64
This operation satisfies n % d == n - (n / d) * d
. The
result has the same sign as the left operand.
Panics
This operation will panic if other == 0
.
1.22.0 · source§impl RemAssign<&u64> for u64
impl RemAssign<&u64> for u64
source§fn rem_assign(&mut self, other: &u64)
fn rem_assign(&mut self, other: &u64)
%=
operation. Read more1.8.0 · source§impl RemAssign<u64> for u64
impl RemAssign<u64> for u64
source§fn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
%=
operation. Read more1.22.0 · source§impl ShlAssign<&i128> for u64
impl ShlAssign<&i128> for u64
source§fn shl_assign(&mut self, other: &i128)
fn shl_assign(&mut self, other: &i128)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&i16> for u64
impl ShlAssign<&i16> for u64
source§fn shl_assign(&mut self, other: &i16)
fn shl_assign(&mut self, other: &i16)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&i32> for u64
impl ShlAssign<&i32> for u64
source§fn shl_assign(&mut self, other: &i32)
fn shl_assign(&mut self, other: &i32)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&i64> for u64
impl ShlAssign<&i64> for u64
source§fn shl_assign(&mut self, other: &i64)
fn shl_assign(&mut self, other: &i64)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&i8> for u64
impl ShlAssign<&i8> for u64
source§fn shl_assign(&mut self, other: &i8)
fn shl_assign(&mut self, other: &i8)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&isize> for u64
impl ShlAssign<&isize> for u64
source§fn shl_assign(&mut self, other: &isize)
fn shl_assign(&mut self, other: &isize)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&u128> for u64
impl ShlAssign<&u128> for u64
source§fn shl_assign(&mut self, other: &u128)
fn shl_assign(&mut self, other: &u128)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&u16> for u64
impl ShlAssign<&u16> for u64
source§fn shl_assign(&mut self, other: &u16)
fn shl_assign(&mut self, other: &u16)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&u32> for u64
impl ShlAssign<&u32> for u64
source§fn shl_assign(&mut self, other: &u32)
fn shl_assign(&mut self, other: &u32)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&u64> for u64
impl ShlAssign<&u64> for u64
source§fn shl_assign(&mut self, other: &u64)
fn shl_assign(&mut self, other: &u64)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&u8> for u64
impl ShlAssign<&u8> for u64
source§fn shl_assign(&mut self, other: &u8)
fn shl_assign(&mut self, other: &u8)
<<=
operation. Read more1.22.0 · source§impl ShlAssign<&usize> for u64
impl ShlAssign<&usize> for u64
source§fn shl_assign(&mut self, other: &usize)
fn shl_assign(&mut self, other: &usize)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<i128> for u64
impl ShlAssign<i128> for u64
source§fn shl_assign(&mut self, other: i128)
fn shl_assign(&mut self, other: i128)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<i16> for u64
impl ShlAssign<i16> for u64
source§fn shl_assign(&mut self, other: i16)
fn shl_assign(&mut self, other: i16)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<i32> for u64
impl ShlAssign<i32> for u64
source§fn shl_assign(&mut self, other: i32)
fn shl_assign(&mut self, other: i32)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<i64> for u64
impl ShlAssign<i64> for u64
source§fn shl_assign(&mut self, other: i64)
fn shl_assign(&mut self, other: i64)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<i8> for u64
impl ShlAssign<i8> for u64
source§fn shl_assign(&mut self, other: i8)
fn shl_assign(&mut self, other: i8)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<isize> for u64
impl ShlAssign<isize> for u64
source§fn shl_assign(&mut self, other: isize)
fn shl_assign(&mut self, other: isize)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<u128> for u64
impl ShlAssign<u128> for u64
source§fn shl_assign(&mut self, other: u128)
fn shl_assign(&mut self, other: u128)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<u16> for u64
impl ShlAssign<u16> for u64
source§fn shl_assign(&mut self, other: u16)
fn shl_assign(&mut self, other: u16)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<u32> for u64
impl ShlAssign<u32> for u64
source§fn shl_assign(&mut self, other: u32)
fn shl_assign(&mut self, other: u32)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<u64> for u64
impl ShlAssign<u64> for u64
source§fn shl_assign(&mut self, other: u64)
fn shl_assign(&mut self, other: u64)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<u8> for u64
impl ShlAssign<u8> for u64
source§fn shl_assign(&mut self, other: u8)
fn shl_assign(&mut self, other: u8)
<<=
operation. Read more1.8.0 · source§impl ShlAssign<usize> for u64
impl ShlAssign<usize> for u64
source§fn shl_assign(&mut self, other: usize)
fn shl_assign(&mut self, other: usize)
<<=
operation. Read more1.22.0 · source§impl ShrAssign<&i128> for u64
impl ShrAssign<&i128> for u64
source§fn shr_assign(&mut self, other: &i128)
fn shr_assign(&mut self, other: &i128)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&i16> for u64
impl ShrAssign<&i16> for u64
source§fn shr_assign(&mut self, other: &i16)
fn shr_assign(&mut self, other: &i16)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&i32> for u64
impl ShrAssign<&i32> for u64
source§fn shr_assign(&mut self, other: &i32)
fn shr_assign(&mut self, other: &i32)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&i64> for u64
impl ShrAssign<&i64> for u64
source§fn shr_assign(&mut self, other: &i64)
fn shr_assign(&mut self, other: &i64)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&i8> for u64
impl ShrAssign<&i8> for u64
source§fn shr_assign(&mut self, other: &i8)
fn shr_assign(&mut self, other: &i8)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&isize> for u64
impl ShrAssign<&isize> for u64
source§fn shr_assign(&mut self, other: &isize)
fn shr_assign(&mut self, other: &isize)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&u128> for u64
impl ShrAssign<&u128> for u64
source§fn shr_assign(&mut self, other: &u128)
fn shr_assign(&mut self, other: &u128)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&u16> for u64
impl ShrAssign<&u16> for u64
source§fn shr_assign(&mut self, other: &u16)
fn shr_assign(&mut self, other: &u16)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&u32> for u64
impl ShrAssign<&u32> for u64
source§fn shr_assign(&mut self, other: &u32)
fn shr_assign(&mut self, other: &u32)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&u64> for u64
impl ShrAssign<&u64> for u64
source§fn shr_assign(&mut self, other: &u64)
fn shr_assign(&mut self, other: &u64)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&u8> for u64
impl ShrAssign<&u8> for u64
source§fn shr_assign(&mut self, other: &u8)
fn shr_assign(&mut self, other: &u8)
>>=
operation. Read more1.22.0 · source§impl ShrAssign<&usize> for u64
impl ShrAssign<&usize> for u64
source§fn shr_assign(&mut self, other: &usize)
fn shr_assign(&mut self, other: &usize)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<i128> for u64
impl ShrAssign<i128> for u64
source§fn shr_assign(&mut self, other: i128)
fn shr_assign(&mut self, other: i128)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<i16> for u64
impl ShrAssign<i16> for u64
source§fn shr_assign(&mut self, other: i16)
fn shr_assign(&mut self, other: i16)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<i32> for u64
impl ShrAssign<i32> for u64
source§fn shr_assign(&mut self, other: i32)
fn shr_assign(&mut self, other: i32)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<i64> for u64
impl ShrAssign<i64> for u64
source§fn shr_assign(&mut self, other: i64)
fn shr_assign(&mut self, other: i64)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<i8> for u64
impl ShrAssign<i8> for u64
source§fn shr_assign(&mut self, other: i8)
fn shr_assign(&mut self, other: i8)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<isize> for u64
impl ShrAssign<isize> for u64
source§fn shr_assign(&mut self, other: isize)
fn shr_assign(&mut self, other: isize)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<u128> for u64
impl ShrAssign<u128> for u64
source§fn shr_assign(&mut self, other: u128)
fn shr_assign(&mut self, other: u128)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<u16> for u64
impl ShrAssign<u16> for u64
source§fn shr_assign(&mut self, other: u16)
fn shr_assign(&mut self, other: u16)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<u32> for u64
impl ShrAssign<u32> for u64
source§fn shr_assign(&mut self, other: u32)
fn shr_assign(&mut self, other: u32)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<u64> for u64
impl ShrAssign<u64> for u64
source§fn shr_assign(&mut self, other: u64)
fn shr_assign(&mut self, other: u64)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<u8> for u64
impl ShrAssign<u8> for u64
source§fn shr_assign(&mut self, other: u8)
fn shr_assign(&mut self, other: u8)
>>=
operation. Read more1.8.0 · source§impl ShrAssign<usize> for u64
impl ShrAssign<usize> for u64
source§fn shr_assign(&mut self, other: usize)
fn shr_assign(&mut self, other: usize)
>>=
operation. Read moresource§impl Step for u64
impl Step for u64
source§unsafe fn forward_unchecked(start: u64, n: usize) -> u64
unsafe fn forward_unchecked(start: u64, n: usize) -> u64
step_trait
)source§unsafe fn backward_unchecked(start: u64, n: usize) -> u64
unsafe fn backward_unchecked(start: u64, n: usize) -> u64
step_trait
)source§fn forward(start: u64, n: usize) -> u64
fn forward(start: u64, n: usize) -> u64
step_trait
)source§fn backward(start: u64, n: usize) -> u64
fn backward(start: u64, n: usize) -> u64
step_trait
)source§fn steps_between(start: &u64, end: &u64) -> Option<usize>
fn steps_between(start: &u64, end: &u64) -> Option<usize>
step_trait
)1.22.0 · source§impl SubAssign<&u64> for u64
impl SubAssign<&u64> for u64
source§fn sub_assign(&mut self, other: &u64)
fn sub_assign(&mut self, other: &u64)
-=
operation. Read more1.8.0 · source§impl SubAssign<u64> for u64
impl SubAssign<u64> for u64
source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
-=
operation. Read more1.34.0 · source§impl TryFrom<i128> for u64
impl TryFrom<i128> for u64
source§fn try_from(u: i128) -> Result<u64, <u64 as TryFrom<i128>>::Error>
fn try_from(u: i128) -> Result<u64, <u64 as TryFrom<i128>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i16> for u64
impl TryFrom<i16> for u64
source§fn try_from(u: i16) -> Result<u64, <u64 as TryFrom<i16>>::Error>
fn try_from(u: i16) -> Result<u64, <u64 as TryFrom<i16>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i32> for u64
impl TryFrom<i32> for u64
source§fn try_from(u: i32) -> Result<u64, <u64 as TryFrom<i32>>::Error>
fn try_from(u: i32) -> Result<u64, <u64 as TryFrom<i32>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i64> for u64
impl TryFrom<i64> for u64
source§fn try_from(u: i64) -> Result<u64, <u64 as TryFrom<i64>>::Error>
fn try_from(u: i64) -> Result<u64, <u64 as TryFrom<i64>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<i8> for u64
impl TryFrom<i8> for u64
source§fn try_from(u: i8) -> Result<u64, <u64 as TryFrom<i8>>::Error>
fn try_from(u: i8) -> Result<u64, <u64 as TryFrom<i8>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<isize> for u64
impl TryFrom<isize> for u64
source§fn try_from(u: isize) -> Result<u64, <u64 as TryFrom<isize>>::Error>
fn try_from(u: isize) -> Result<u64, <u64 as TryFrom<isize>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<u128> for u64
impl TryFrom<u128> for u64
source§fn try_from(u: u128) -> Result<u64, <u64 as TryFrom<u128>>::Error>
fn try_from(u: u128) -> Result<u64, <u64 as TryFrom<u128>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
§type Error = TryFromIntError
type Error = TryFromIntError
1.34.0 · source§impl TryFrom<usize> for u64
impl TryFrom<usize> for u64
source§fn try_from(value: usize) -> Result<u64, <u64 as TryFrom<usize>>::Error>
fn try_from(value: usize) -> Result<u64, <u64 as TryFrom<usize>>::Error>
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.