pub struct FunctionVerb<H, T> { /* private fields */ }
Expand description
A verb defined through a closure/function
See the CallableVerb
trait for what can be used
Implementations§
Source§impl<H, T> FunctionVerb<H, T>
impl<H, T> FunctionVerb<H, T>
Sourcepub fn new<F>(func: F) -> Selfwhere
F: CallableVerb<H, T>,
pub fn new<F>(func: F) -> Selfwhere
F: CallableVerb<H, T>,
Create a new verb using a closure/function
Trait Implementations§
Source§impl<H, T> Clone for FunctionVerb<H, T>
impl<H, T> Clone for FunctionVerb<H, T>
Source§impl<H, T> Debug for FunctionVerb<H, T>
impl<H, T> Debug for FunctionVerb<H, T>
Auto Trait Implementations§
impl<H, T> Freeze for FunctionVerb<H, T>
impl<H, T> !RefUnwindSafe for FunctionVerb<H, T>
impl<H, T> !Send for FunctionVerb<H, T>
impl<H, T> !Sync for FunctionVerb<H, T>
impl<H, T> Unpin for FunctionVerb<H, T>
impl<H, T> !UnwindSafe for FunctionVerb<H, T>
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