pub struct FunctionSpec {
pub node_type: &'static str,
pub num_args: usize,
pub num_optional_args: usize,
pub arg_types: Option<Vec<ArgType>>,
pub allowed_in_argument: bool,
pub allowed_in_text: bool,
pub allowed_in_math: bool,
pub infix: bool,
pub primitive: bool,
pub handler: FunctionHandler,
}Expand description
Specification for a registered function.
Fields§
§node_type: &'static str§num_args: usize§num_optional_args: usize§arg_types: Option<Vec<ArgType>>§allowed_in_argument: bool§allowed_in_text: bool§allowed_in_math: bool§infix: bool§primitive: bool§handler: FunctionHandlerAuto Trait Implementations§
impl Freeze for FunctionSpec
impl RefUnwindSafe for FunctionSpec
impl Send for FunctionSpec
impl Sync for FunctionSpec
impl Unpin for FunctionSpec
impl UnsafeUnpin for FunctionSpec
impl UnwindSafe for FunctionSpec
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