pub enum Param {
Symbol(LitSym),
Default(LitSym, Expr),
}Expand description
A parameter of a function declaration, such as x or y = 1 in the declaration f(x, y = 1) = x^y.
Variants§
Symbol(LitSym)
A parameter with no default value, such as x in f(x) = x^2.
Default(LitSym, Expr)
A parameter with a default value, such as y = 1 in f(x, y = 1) = x^y.
Implementations§
Trait Implementations§
Source§impl Latex for Param
impl Latex for Param
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Param
impl<'source> Parse<'source> for Param
impl Eq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
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