Struct FromFn
struct FromFn<F>(_)
Implements fmt::Debug and fmt::Display via the provided closure.
Created with from_fn.
Implementations
impl<F> Debug for FromFn<F>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<F> Display for FromFn<F>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<F> Freeze for FromFn<F>
impl<F> RefUnwindSafe for FromFn<F>
impl<F> Send for FromFn<F>
impl<F> Sync for FromFn<F>
impl<F> Unpin for FromFn<F>
impl<F> UnsafeUnpin for FromFn<F>
impl<F> UnwindSafe for FromFn<F>
impl<T> Any for FromFn<F>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FromFn<F>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FromFn<F>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for FromFn<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for FromFn<F>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for FromFn<F>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FromFn<F>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>