pub enum Function {
Nullary(fn(_: Context<'_, '_>) -> Result<String, String>),
Unary(fn(_: Context<'_, '_>, _: &str) -> Result<String, String>),
UnaryOpt(fn(_: Context<'_, '_>, _: &str, _: Option<&str>) -> Result<String, String>),
UnaryPlus(fn(_: Context<'_, '_>, _: &str, _: &[String]) -> Result<String, String>),
Binary(fn(_: Context<'_, '_>, _: &str, _: &str) -> Result<String, String>),
BinaryPlus(fn(_: Context<'_, '_>, _: &str, _: &str, _: &[String]) -> Result<String, String>),
Ternary(fn(_: Context<'_, '_>, _: &str, _: &str, _: &str) -> Result<String, String>),
}
Variantsยง
Nullary(fn(_: Context<'_, '_>) -> Result<String, String>)
Unary(fn(_: Context<'_, '_>, _: &str) -> Result<String, String>)
UnaryOpt(fn(_: Context<'_, '_>, _: &str, _: Option<&str>) -> Result<String, String>)
UnaryPlus(fn(_: Context<'_, '_>, _: &str, _: &[String]) -> Result<String, String>)
Binary(fn(_: Context<'_, '_>, _: &str, _: &str) -> Result<String, String>)
BinaryPlus(fn(_: Context<'_, '_>, _: &str, _: &str, _: &[String]) -> Result<String, String>)
Ternary(fn(_: Context<'_, '_>, _: &str, _: &str, _: &str) -> Result<String, String>)
Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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