[−][src]Struct fn_formats::LowerExpFmt
Implements LowerExp
by calling the stored closure.
Example
use fn_formats::LowerExpFmt; let lower_exp = LowerExpFmt(|f| write!(f, "lower exp")); assert_eq!(format!("{:e}", lower_exp), "lower exp");
Trait Implementations
impl<Fmt: Clone> Clone for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn clone(&self) -> LowerExpFmt<Fmt>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Fmt: Copy> Copy for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
impl<Fmt: Default> Default for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn default() -> LowerExpFmt<Fmt>
[src]
impl<Fmt: Eq> Eq for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
impl<Fmt: Fn(&mut Formatter<'_>) -> Result> From<Fmt> for LowerExpFmt<Fmt>
[src]
let _: fn_formats::LowerExpFmt<_> = (|f: &mut core::fmt::Formatter| Ok(())).into();
impl<Fmt: Hash> Hash for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Fmt: Fn(&mut Formatter<'_>) -> Result> LowerExp for LowerExpFmt<Fmt>
[src]
impl<Fmt: Ord> Ord for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn cmp(&self, other: &LowerExpFmt<Fmt>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<Fmt: PartialEq> PartialEq<LowerExpFmt<Fmt>> for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn eq(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
fn ne(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
impl<Fmt: PartialOrd> PartialOrd<LowerExpFmt<Fmt>> for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
fn partial_cmp(&self, other: &LowerExpFmt<Fmt>) -> Option<Ordering>
[src]
fn lt(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
fn le(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
fn gt(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
fn ge(&self, other: &LowerExpFmt<Fmt>) -> bool
[src]
impl<Fmt> StructuralEq for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
impl<Fmt> StructuralPartialEq for LowerExpFmt<Fmt> where
Fmt: Fn(&mut Formatter<'_>) -> Result,
[src]
Fmt: Fn(&mut Formatter<'_>) -> Result,
Auto Trait Implementations
impl<Fmt> Send for LowerExpFmt<Fmt> where
Fmt: Send,
Fmt: Send,
impl<Fmt> Sync for LowerExpFmt<Fmt> where
Fmt: Sync,
Fmt: Sync,
impl<Fmt> Unpin for LowerExpFmt<Fmt> where
Fmt: Unpin,
Fmt: Unpin,
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<!> for 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, 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>,