[][src]Struct undo::FromFn

pub struct FromFn<T: 'static, F: 'static> { /* fields omitted */ }

A command wrapper created from a function.

Created by the from_fn function.

Implementations

impl<T, F> FromFn<T, F>[src]

pub fn with_text(self, text: impl Into<String>) -> WithText<FromFn<T, F>>[src]

Returns a new command with the provided text.

pub fn with_merge(self, merge: Merge) -> WithMerge<FromFn<T, F>>[src]

Returns a new command with the provided merge behavior.

Trait Implementations

impl<T: Debug + Clone, F: FnMut(&mut T)> Command<T> for FromFn<T, F>[src]

impl<T: Debug, F> Debug for FromFn<T, F>[src]

Auto Trait Implementations

impl<T, F> RefUnwindSafe for FromFn<T, F> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F> Send for FromFn<T, F> where
    F: Send,
    T: Send

impl<T, F> Sync for FromFn<T, F> where
    F: Sync,
    T: Sync

impl<T, F> Unpin for FromFn<T, F> where
    F: Unpin,
    T: Unpin

impl<T, F> UnwindSafe for FromFn<T, F> where
    F: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.