pub struct FunctionPropSpec {
pub num_args: usize,
pub arg_types: Option<Vec<ArgType>>,
pub allowed_in_argument: bool,
pub allowed_in_text: bool,
pub allowed_in_math: bool,
pub num_optional_args: usize,
pub infix: bool,
pub primitive: bool,
}
Expand description
Configuration structure defining properties and parsing behavior for LaTeX mathematical functions.
Fields§
§num_args: usize
The number of arguments the function takes
arg_types: Option<Vec<ArgType>>
An array corresponding to each argument of the function, giving the type of argument that should be parsed
allowed_in_argument: bool
Whether it expands to a single token or a braced group of tokens
allowed_in_text: bool
Whether the function is allowed inside text mode
allowed_in_math: bool
Whether the function is allowed inside math mode
num_optional_args: usize
The number of optional arguments the function should parse
infix: bool
Whether the function is an infix operator
primitive: bool
Whether the function is a TeX primitive
Trait Implementations§
Source§impl Clone for FunctionPropSpec
impl Clone for FunctionPropSpec
Source§fn clone(&self) -> FunctionPropSpec
fn clone(&self) -> FunctionPropSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionPropSpec
impl Debug for FunctionPropSpec
Source§impl Default for FunctionPropSpec
Default implementation for FunctionPropSpec
.
impl Default for FunctionPropSpec
Default implementation for FunctionPropSpec
.
Auto Trait Implementations§
impl Freeze for FunctionPropSpec
impl RefUnwindSafe for FunctionPropSpec
impl Send for FunctionPropSpec
impl Sync for FunctionPropSpec
impl Unpin for FunctionPropSpec
impl UnwindSafe for FunctionPropSpec
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