[][src]Struct texrender::tpl::MacroCall

pub struct MacroCall { /* fields omitted */ }

A TeX-macro invocation.

This is the typical \macroname[opt1]{arg1}{arg2} call that is common in latex documents.

Implementations

impl MacroCall[src]

pub fn new<T: IntoTexElement>(ident: T, opt_args: OptArgs, args: Args) -> Self[src]

Creates a new macro call.

The resulting call will end with a newline when output.

pub fn new_inline<T: IntoTexElement>(
    ident: T,
    opt_args: OptArgs,
    args: Args
) -> Self
[src]

Creates a new inline macro call.

Does not end with a newline.

Trait Implementations

impl Debug for MacroCall[src]

impl TexElement for MacroCall[src]

Auto Trait Implementations

impl !RefUnwindSafe for MacroCall

impl !Send for MacroCall

impl !Sync for MacroCall

impl Unpin for MacroCall

impl !UnwindSafe for MacroCall

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoTexElement for T where
    T: 'static + TexElement
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.