[−][src]Struct kv::Integer
Integer key type
Implementations
impl Integer
[src]
pub fn timestamp() -> Result<Integer, Error>
[src]
Current timestamp in seconds from the Unix epoch
pub fn timestamp_ms() -> Result<Integer, Error>
[src]
Current timestamp in milliseconds from the Unix epoch
Trait Implementations
impl AsRef<[u8]> for Integer
[src]
impl Clone for Integer
[src]
impl Copy for Integer
[src]
impl Debug for Integer
[src]
impl<'a> From<&'a [u8]> for Integer
[src]
impl From<Integer> for u128
[src]
impl From<Integer> for u64
[src]
impl From<Integer> for usize
[src]
impl From<i32> for Integer
[src]
impl From<u128> for Integer
[src]
impl From<u32> for Integer
[src]
impl From<u64> for Integer
[src]
impl From<usize> for Integer
[src]
impl<'a> Key<'a> for Integer
[src]
fn from_raw_key(x: &Raw) -> Result<Integer, Error>
[src]
fn to_raw_key(&self) -> Result<Raw, Error>
[src]
impl PartialEq<Integer> for Integer
[src]
impl PartialOrd<Integer> for Integer
[src]
fn partial_cmp(&self, other: &Integer) -> Option<Ordering>
[src]
fn lt(&self, other: &Integer) -> bool
[src]
fn le(&self, other: &Integer) -> bool
[src]
fn gt(&self, other: &Integer) -> bool
[src]
fn ge(&self, other: &Integer) -> bool
[src]
impl StructuralPartialEq for Integer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,