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]

Create a new Equation.

Set the Equation's label.

Don't number this equation.

Trait Implementations

impl Clone for Equation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Equation
[src]

Formats the value using the given formatter.

impl Default for Equation
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Equation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Renderable for Equation
[src]

Render the item.

impl<'a> From<&'a str> for Equation
[src]

Performs the conversion.