pub struct FunctionVerb<H> { /* private fields */ }Expand description
A verb defined through a closure/function
See the CallableVerb trait for what can be used
Implementations§
Source§impl<H> FunctionVerb<H>
impl<H> FunctionVerb<H>
Sourcepub fn new<F, T>(func: F) -> Selfwhere
F: CallableVerb<H, T>,
pub fn new<F, T>(func: F) -> Selfwhere
F: CallableVerb<H, T>,
Create a new verb using a closure/function
Trait Implementations§
Source§impl<H> Clone for FunctionVerb<H>
impl<H> Clone for FunctionVerb<H>
Auto Trait Implementations§
impl<H> Freeze for FunctionVerb<H>
impl<H> !RefUnwindSafe for FunctionVerb<H>
impl<H> !Send for FunctionVerb<H>
impl<H> !Sync for FunctionVerb<H>
impl<H> Unpin for FunctionVerb<H>
impl<H> !UnwindSafe for FunctionVerb<H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more