Struct latex::Equation
[−]
[src]
pub struct Equation { /* fields omitted */ }
A single equation.
Examples
The Equation
struct is designed to be added to an Align
object.
Creating one is as simple as using the constructor.
use latex::Equation; let eq = Equation::new("y &= mx + c");
For convenience, you can also convert from a &str
to an Equation
using
into()
.
use latex::Equation; let eq: Equation = "y &= mx + c".into();
You can assign a label
to an equation so it can be referenced later.
eq.label("basic-linear-equation");
Methods
impl Equation
[src]
fn new<S: AsRef<str>>(src: S) -> Equation
Create a new Equation
.
fn label<S: AsRef<str>>(&mut self, text: S) -> &mut Self
Set the Equation
's label.
fn not_numbered(&mut self) -> &mut Self
Don't number this equation.
Trait Implementations
impl Clone for Equation
[src]
fn clone(&self) -> Equation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Equation
[src]
impl Default for Equation
[src]
impl PartialEq for Equation
[src]
fn eq(&self, __arg_0: &Equation) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Equation) -> bool
This method tests for !=
.