Expand description
A format table with a single entry, accessed by a string key.
Tuple Fields
0: S
1: T
Trait Implementations
sourceimpl<S: Ord + Deref<Target = str>, T: Ord + Fmt> Ord for Mono<S, T>
impl<S: Ord + Deref<Target = str>, T: Ord + Fmt> Ord for Mono<S, T>
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<S: PartialEq + Deref<Target = str>, T: PartialEq + Fmt> PartialEq<Mono<S, T>> for Mono<S, T>
impl<S: PartialEq + Deref<Target = str>, T: PartialEq + Fmt> PartialEq<Mono<S, T>> for Mono<S, T>
sourceimpl<S: PartialOrd + Deref<Target = str>, T: PartialOrd + Fmt> PartialOrd<Mono<S, T>> for Mono<S, T>
impl<S: PartialOrd + Deref<Target = str>, T: PartialOrd + Fmt> PartialOrd<Mono<S, T>> for Mono<S, T>
sourcefn partial_cmp(&self, other: &Mono<S, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Mono<S, T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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<S: Eq + Deref<Target = str>, T: Eq + Fmt> Eq for Mono<S, T>
impl<S: Deref<Target = str>, T: Fmt> StructuralEq for Mono<S, T>
impl<S: Deref<Target = str>, T: Fmt> StructuralPartialEq for Mono<S, T>
Auto Trait Implementations
impl<S, T> RefUnwindSafe for Mono<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Mono<S, T>where
S: Send,
T: Send,
impl<S, T> Sync for Mono<S, T>where
S: Sync,
T: Sync,
impl<S, T> Unpin for Mono<S, T>where
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for Mono<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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