Enum mitex_parser::query::CommandSpecItem
source · pub enum CommandSpecItem {
}Expand description
An item of command specification. This enum contains more sugar than the canonical representation.
See crate::CommandSpecItem for more details.
Variants§
Cmd(CmdShape)
A canonical command item.
Env(EnvShape)
A canonical environment item.
Symbol
A command that takes no argument, and its handler is also a typst symbol.
Command0
A command that takes zero argument, and its handler is a typst function.
Command1
A command that takes one argument.
Command2
A command that takes two arguments.
CmdLeft1
A command that takes one argument and is a left-associative operator.
EnvMatrix
A command that takes no argument and is a matrix environment.
EnvNormal
A command that takes no argument and is a normal environment.
SymAlias
A command that is aliased to a Typst symbol.
CmdGreedy
A command that is greedy and is aliased to a Typst handler.
CmdInfix
A command that is an infix operator and is aliased to a Typst handler.
CmdGlob
A command that has a glob argument pattern and is aliased to a Typst handler.
Trait Implementations§
source§impl Clone for CommandSpecItem
impl Clone for CommandSpecItem
source§fn clone(&self) -> CommandSpecItem
fn clone(&self) -> CommandSpecItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more