pub struct FromFn<F>(/* private fields */);
Implements fmt::Debug and fmt::Display via the provided closure.
Created with from_fn.
impl<F> Debug for FromFn<F>where
F: Fn(&mut Formatter<'_>) -> Result<(), Error>,fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<F> Display for FromFn<F>where
F: Fn(&mut Formatter<'_>) -> Result<(), Error>,impl<F> Freeze for FromFn<F>where
F: Freeze,impl<F> RefUnwindSafe for FromFn<F>where
F: RefUnwindSafe,impl<F> Send for FromFn<F>where
F: Send,impl<F> Sync for FromFn<F>where
F: Sync,impl<F> Unpin for FromFn<F>where
F: Unpin,impl<F> UnwindSafe for FromFn<F>where
F: UnwindSafe,impl<T> Any for Twhere
T: 'static + ?Sized,impl<T> Borrow<T> for Twhere
T: ?Sized,impl<T> BorrowMut<T> for Twhere
T: ?Sized,impl<T> From<T> for T
fn from(t: T) -> T
Returns the argument unchanged.
impl<T, U> Into<U> for Twhere
U: From<T>,fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
impl<T> ToString for Twhere
T: Display + ?Sized,impl<T, U> TryFrom<U> for Twhere
U: Into<T>,type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/fmt/struct.FromFn.html