pub struct SubstrateTime(pub i64);Expand description
Substrate time representation (nanoseconds since epoch)
Tuple Fields§
§0: i64Implementations§
Source§impl SubstrateTime
impl SubstrateTime
pub const MIN: SubstrateTime
pub const MAX: SubstrateTime
pub fn now() -> SubstrateTime
pub fn abs(&self) -> SubstrateTime
Trait Implementations§
Source§impl Clone for SubstrateTime
impl Clone for SubstrateTime
Source§fn clone(&self) -> SubstrateTime
fn clone(&self) -> SubstrateTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubstrateTime
impl Debug for SubstrateTime
Source§impl<'de> Deserialize<'de> for SubstrateTime
impl<'de> Deserialize<'de> for SubstrateTime
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubstrateTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubstrateTime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for SubstrateTime
impl Ord for SubstrateTime
Source§fn cmp(&self, other: &SubstrateTime) -> Ordering
fn cmp(&self, other: &SubstrateTime) -> Ordering
1.21.0 · 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 SubstrateTime
impl PartialEq for SubstrateTime
Source§impl PartialOrd for SubstrateTime
impl PartialOrd for SubstrateTime
Source§impl Serialize for SubstrateTime
impl Serialize for SubstrateTime
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
Source§impl Sub for SubstrateTime
impl Sub for SubstrateTime
Source§type Output = SubstrateTime
type Output = SubstrateTime
The resulting type after applying the
- operator.Source§fn sub(self, rhs: SubstrateTime) -> <SubstrateTime as Sub>::Output
fn sub(self, rhs: SubstrateTime) -> <SubstrateTime as Sub>::Output
Performs the
- operation. Read moreimpl Copy for SubstrateTime
impl Eq for SubstrateTime
impl StructuralPartialEq for SubstrateTime
Auto Trait Implementations§
impl Freeze for SubstrateTime
impl RefUnwindSafe for SubstrateTime
impl Send for SubstrateTime
impl Sync for SubstrateTime
impl Unpin for SubstrateTime
impl UnwindSafe for SubstrateTime
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.