pub struct BlockNumberOffset(pub u64);Expand description
BlockNumberOffset represents the offset of a block number
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Add for BlockNumberOffset
impl Add for BlockNumberOffset
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(self, rhs: BlockNumberOffset) -> <BlockNumberOffset as Add>::Output
fn add(self, rhs: BlockNumberOffset) -> <BlockNumberOffset as Add>::Output
Performs the
+ operation. Read moreSource§impl Add<&BlockNumberOffset> for u64
impl Add<&BlockNumberOffset> for u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: &BlockNumberOffset,
) -> <u64 as Add<&BlockNumberOffset>>::Output
fn add( self, rhs: &BlockNumberOffset, ) -> <u64 as Add<&BlockNumberOffset>>::Output
Performs the
+ operation. Read moreSource§impl Add<&BlockNumberOffset> for &u64
impl Add<&BlockNumberOffset> for &u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: &BlockNumberOffset,
) -> <&u64 as Add<&BlockNumberOffset>>::Output
fn add( self, rhs: &BlockNumberOffset, ) -> <&u64 as Add<&BlockNumberOffset>>::Output
Performs the
+ operation. Read moreSource§impl Add<&u64> for BlockNumberOffset
impl Add<&u64> for BlockNumberOffset
Source§impl Add<BlockNumber> for BlockNumberOffset
impl Add<BlockNumber> for BlockNumberOffset
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: BlockNumber,
) -> <BlockNumberOffset as Add<BlockNumber>>::Output
fn add( self, rhs: BlockNumber, ) -> <BlockNumberOffset as Add<BlockNumber>>::Output
Performs the
+ operation. Read moreSource§impl Add<BlockNumberOffset> for BlockNumber
impl Add<BlockNumberOffset> for BlockNumber
Source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
+ operator.Source§fn add(
self,
rhs: BlockNumberOffset,
) -> <BlockNumber as Add<BlockNumberOffset>>::Output
fn add( self, rhs: BlockNumberOffset, ) -> <BlockNumber as Add<BlockNumberOffset>>::Output
Performs the
+ operation. Read moreSource§impl Add<BlockNumberOffset> for u64
impl Add<BlockNumberOffset> for u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(self, rhs: BlockNumberOffset) -> <u64 as Add<BlockNumberOffset>>::Output
fn add(self, rhs: BlockNumberOffset) -> <u64 as Add<BlockNumberOffset>>::Output
Performs the
+ operation. Read moreSource§impl Add<BlockNumberOffset> for &u64
impl Add<BlockNumberOffset> for &u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
+ operator.Source§fn add(self, rhs: BlockNumberOffset) -> <&u64 as Add<BlockNumberOffset>>::Output
fn add(self, rhs: BlockNumberOffset) -> <&u64 as Add<BlockNumberOffset>>::Output
Performs the
+ operation. Read moreSource§impl Add<u64> for BlockNumberOffset
impl Add<u64> for BlockNumberOffset
Source§impl AddAssign for BlockNumberOffset
impl AddAssign for BlockNumberOffset
Source§fn add_assign(&mut self, rhs: BlockNumberOffset)
fn add_assign(&mut self, rhs: BlockNumberOffset)
Performs the
+= operation. Read moreSource§impl AddAssign<&BlockNumberOffset> for u64
impl AddAssign<&BlockNumberOffset> for u64
Source§fn add_assign(&mut self, rhs: &BlockNumberOffset)
fn add_assign(&mut self, rhs: &BlockNumberOffset)
Performs the
+= operation. Read moreSource§impl AddAssign<&u64> for BlockNumberOffset
impl AddAssign<&u64> for BlockNumberOffset
Source§fn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
Performs the
+= operation. Read moreSource§impl AddAssign<BlockNumber> for BlockNumberOffset
impl AddAssign<BlockNumber> for BlockNumberOffset
Source§fn add_assign(&mut self, rhs: BlockNumber)
fn add_assign(&mut self, rhs: BlockNumber)
Performs the
+= operation. Read moreSource§impl AddAssign<BlockNumberOffset> for BlockNumber
impl AddAssign<BlockNumberOffset> for BlockNumber
Source§fn add_assign(&mut self, rhs: BlockNumberOffset)
fn add_assign(&mut self, rhs: BlockNumberOffset)
Performs the
+= operation. Read moreSource§impl AddAssign<BlockNumberOffset> for u64
impl AddAssign<BlockNumberOffset> for u64
Source§fn add_assign(&mut self, rhs: BlockNumberOffset)
fn add_assign(&mut self, rhs: BlockNumberOffset)
Performs the
+= operation. Read moreSource§impl AddAssign<u64> for BlockNumberOffset
impl AddAssign<u64> for BlockNumberOffset
Source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the
+= operation. Read moreSource§impl Clone for BlockNumberOffset
impl Clone for BlockNumberOffset
Source§fn clone(&self) -> BlockNumberOffset
fn clone(&self) -> BlockNumberOffset
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 BlockNumberOffset
Source§impl Debug for BlockNumberOffset
impl Debug for BlockNumberOffset
Source§impl Default for BlockNumberOffset
impl Default for BlockNumberOffset
Source§fn default() -> BlockNumberOffset
fn default() -> BlockNumberOffset
Returns the “default value” for a type. Read more
Source§impl Deref for BlockNumberOffset
impl Deref for BlockNumberOffset
Source§impl DerefMut for BlockNumberOffset
impl DerefMut for BlockNumberOffset
Source§impl<'de> Deserialize<'de> for BlockNumberOffset
impl<'de> Deserialize<'de> for BlockNumberOffset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockNumberOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockNumberOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BlockNumberOffset
impl Display for BlockNumberOffset
impl Eq for BlockNumberOffset
Source§impl From<BlockNumber> for BlockNumberOffset
impl From<BlockNumber> for BlockNumberOffset
Source§fn from(value: BlockNumber) -> BlockNumberOffset
fn from(value: BlockNumber) -> BlockNumberOffset
Converts to this type from the input type.
Source§impl Hash for BlockNumberOffset
impl Hash for BlockNumberOffset
Source§impl Ord for BlockNumberOffset
impl Ord for BlockNumberOffset
Source§fn cmp(&self, other: &BlockNumberOffset) -> Ordering
fn cmp(&self, other: &BlockNumberOffset) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockNumberOffset
impl PartialEq for BlockNumberOffset
Source§impl PartialEq<&BlockNumberOffset> for BlockNumberOffset
impl PartialEq<&BlockNumberOffset> for BlockNumberOffset
Source§impl PartialEq<&BlockNumberOffset> for u64
impl PartialEq<&BlockNumberOffset> for u64
Source§impl PartialEq<&u64> for BlockNumberOffset
impl PartialEq<&u64> for BlockNumberOffset
Source§impl PartialEq<BlockNumberOffset> for &BlockNumberOffset
impl PartialEq<BlockNumberOffset> for &BlockNumberOffset
Source§impl PartialEq<BlockNumberOffset> for u64
impl PartialEq<BlockNumberOffset> for u64
Source§impl PartialEq<BlockNumberOffset> for &u64
impl PartialEq<BlockNumberOffset> for &u64
Source§impl PartialEq<u64> for BlockNumberOffset
impl PartialEq<u64> for BlockNumberOffset
Source§impl PartialEq<u64> for &BlockNumberOffset
impl PartialEq<u64> for &BlockNumberOffset
Source§impl PartialOrd for BlockNumberOffset
impl PartialOrd for BlockNumberOffset
Source§impl Serialize for BlockNumberOffset
impl Serialize for BlockNumberOffset
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 StructuralPartialEq for BlockNumberOffset
Source§impl Sub for BlockNumberOffset
impl Sub for BlockNumberOffset
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(self, rhs: BlockNumberOffset) -> <BlockNumberOffset as Sub>::Output
fn sub(self, rhs: BlockNumberOffset) -> <BlockNumberOffset as Sub>::Output
Performs the
- operation. Read moreSource§impl Sub<&BlockNumberOffset> for u64
impl Sub<&BlockNumberOffset> for u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: &BlockNumberOffset,
) -> <u64 as Sub<&BlockNumberOffset>>::Output
fn sub( self, rhs: &BlockNumberOffset, ) -> <u64 as Sub<&BlockNumberOffset>>::Output
Performs the
- operation. Read moreSource§impl Sub<&BlockNumberOffset> for &u64
impl Sub<&BlockNumberOffset> for &u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: &BlockNumberOffset,
) -> <&u64 as Sub<&BlockNumberOffset>>::Output
fn sub( self, rhs: &BlockNumberOffset, ) -> <&u64 as Sub<&BlockNumberOffset>>::Output
Performs the
- operation. Read moreSource§impl Sub<&u64> for BlockNumberOffset
impl Sub<&u64> for BlockNumberOffset
Source§impl Sub<BlockNumber> for BlockNumberOffset
impl Sub<BlockNumber> for BlockNumberOffset
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: BlockNumber,
) -> <BlockNumberOffset as Sub<BlockNumber>>::Output
fn sub( self, rhs: BlockNumber, ) -> <BlockNumberOffset as Sub<BlockNumber>>::Output
Performs the
- operation. Read moreSource§impl Sub<BlockNumberOffset> for BlockNumber
impl Sub<BlockNumberOffset> for BlockNumber
Source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
- operator.Source§fn sub(
self,
rhs: BlockNumberOffset,
) -> <BlockNumber as Sub<BlockNumberOffset>>::Output
fn sub( self, rhs: BlockNumberOffset, ) -> <BlockNumber as Sub<BlockNumberOffset>>::Output
Performs the
- operation. Read moreSource§impl Sub<BlockNumberOffset> for u64
impl Sub<BlockNumberOffset> for u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(self, rhs: BlockNumberOffset) -> <u64 as Sub<BlockNumberOffset>>::Output
fn sub(self, rhs: BlockNumberOffset) -> <u64 as Sub<BlockNumberOffset>>::Output
Performs the
- operation. Read moreSource§impl Sub<BlockNumberOffset> for &u64
impl Sub<BlockNumberOffset> for &u64
Source§type Output = BlockNumberOffset
type Output = BlockNumberOffset
The resulting type after applying the
- operator.Source§fn sub(self, rhs: BlockNumberOffset) -> <&u64 as Sub<BlockNumberOffset>>::Output
fn sub(self, rhs: BlockNumberOffset) -> <&u64 as Sub<BlockNumberOffset>>::Output
Performs the
- operation. Read moreSource§impl Sub<u64> for BlockNumberOffset
impl Sub<u64> for BlockNumberOffset
Source§impl SubAssign for BlockNumberOffset
impl SubAssign for BlockNumberOffset
Source§fn sub_assign(&mut self, rhs: BlockNumberOffset)
fn sub_assign(&mut self, rhs: BlockNumberOffset)
Performs the
-= operation. Read moreSource§impl SubAssign<&BlockNumberOffset> for u64
impl SubAssign<&BlockNumberOffset> for u64
Source§fn sub_assign(&mut self, rhs: &BlockNumberOffset)
fn sub_assign(&mut self, rhs: &BlockNumberOffset)
Performs the
-= operation. Read moreSource§impl SubAssign<&u64> for BlockNumberOffset
impl SubAssign<&u64> for BlockNumberOffset
Source§fn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
Performs the
-= operation. Read moreSource§impl SubAssign<BlockNumberOffset> for u64
impl SubAssign<BlockNumberOffset> for u64
Source§fn sub_assign(&mut self, rhs: BlockNumberOffset)
fn sub_assign(&mut self, rhs: BlockNumberOffset)
Performs the
-= operation. Read moreSource§impl SubAssign<u64> for BlockNumberOffset
impl SubAssign<u64> for BlockNumberOffset
Source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the
-= operation. Read moreSource§impl TryFrom<i64> for BlockNumberOffset
impl TryFrom<i64> for BlockNumberOffset
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§fn try_from(
value: i64,
) -> Result<BlockNumberOffset, <BlockNumberOffset as TryFrom<i64>>::Error>
fn try_from( value: i64, ) -> Result<BlockNumberOffset, <BlockNumberOffset as TryFrom<i64>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BlockNumberOffset
impl RefUnwindSafe for BlockNumberOffset
impl Send for BlockNumberOffset
impl Sync for BlockNumberOffset
impl Unpin for BlockNumberOffset
impl UnsafeUnpin for BlockNumberOffset
impl UnwindSafe for BlockNumberOffset
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
impl<T> SendSyncUnwindSafe for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.