Struct rust_texas::commands::Command
source · pub struct Command {
pub name: String,
pub nargs: usize,
pub def: String,
}Expand description
Latex macros. Rudimentary so far, have to embed latex. Please refer to README for usage.
Fields§
§name: String§nargs: usize§def: StringImplementations§
source§impl Command
impl Command
sourcepub fn new(name: &str, nargs: usize, def: &str) -> Self
pub fn new(name: &str, nargs: usize, def: &str) -> Self
You use this to make a new command (duh), but you need the doc.new_command() call to actually be able to access it within the document.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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