pub struct Id64(_);Expand description
64 bit container with methods for base64url encoding
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Id64
impl<'de> Deserialize<'de> for Id64
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Distribution<Id64> for Standard
impl Distribution<Id64> for Standard
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Id64
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Id64
Generate a random value of
T, using rng as the source of randomness.sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moresourceimpl<'q, DB: Database> Encode<'q, DB> for Id64where
i64: Encode<'q, DB>,
impl<'q, DB: Database> Encode<'q, DB> for Id64where
i64: Encode<'q, DB>,
sourcefn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn encode_by_ref(
&self,
buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer
) -> IsNull
fn produces(&self) -> Option<DB::TypeInfo>
fn size_hint(&self) -> usize
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of
self into buf in the expected format for the database.sourceimpl<'a, R: Row> FromRow<'a, R> for Id64where
usize: ColumnIndex<R>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Id64where
usize: ColumnIndex<R>,
i64: Decode<'a, R::Database>,
i64: Type<R::Database>,
sourceimpl Ord for Id64
impl Ord for Id64
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Id64> for Id64
impl PartialOrd<Id64> for Id64
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Id64
impl Eq for Id64
impl StructuralEq for Id64
impl StructuralPartialEq for Id64
Auto Trait Implementations
impl RefUnwindSafe for Id64
impl Send for Id64
impl Sync for Id64
impl Unpin for Id64
impl UnwindSafe for Id64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more