pub struct EquationLine<'t> {
pub content: Vec<NodeRef<'t, Flm>>,
pub labels: Vec<LabelUse>,
pub tag: Option<Tag<'t>>,
pub nonumber: bool,
pub linebreak: Option<LineBreak<'t>>,
}Expand description
One equation line of a display-math environment, as equation_lines
reads it: its content, labels, tag, no-number mark and line break. The
module documentation, Reading a body as lines, says how a body is split
into lines.
Fields§
§content: Vec<NodeRef<'t, Flm>>The line’s content, in order: every direct child of the body in this
line that is not a \\, a \label, a \tag or a \nonumber
(mathematics, whitespace, comments, and nested environments as a
whole). On the last line this includes, as written, the whitespace and
comments after a final \\ that is not recorded (see the module
documentation, Reading a body as lines).
labels: Vec<LabelUse>The labels written on the line, in order, each as written and, when its
text has the form type:label, parsed. The environment declares them
on the line’s reference point, and its recomposition rule for the
latex-recomposed backend writes them at the line’s end.
tag: Option<Tag<'t>>The tag, when one was written; when a line has several, the last one.
nonumber: boolWhether \nonumber was written on the line.
linebreak: Option<LineBreak<'t>>The \\ that ends the line: Some exactly when another line follows
this one. None for the last line, whether or not a \\ was written
after it: a final \\ followed only by whitespace and comments is not
recorded, and that whitespace and those comments are part of the
line’s content (see the module
documentation, Reading a body as lines).
Trait Implementations§
Source§impl<'t> Clone for EquationLine<'t>
impl<'t> Clone for EquationLine<'t>
Source§impl<'t> Debug for EquationLine<'t>
impl<'t> Debug for EquationLine<'t>
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for EquationLine<'t>
impl<'t> !UnwindSafe for EquationLine<'t>
impl<'t> Forget for EquationLine<'t>
impl<'t> Freeze for EquationLine<'t>
impl<'t> Move for EquationLine<'t>
impl<'t> Send for EquationLine<'t>
impl<'t> Sync for EquationLine<'t>
impl<'t> Unpin for EquationLine<'t>
impl<'t> UnsafeUnpin for EquationLine<'t>where
*const u8 is !null: UnsafeUnpin,
PhantomData<NodeRef<'t, Flm>>: UnsafeUnpin,
PhantomData<LabelUse>: UnsafeUnpin,
&'t NodeTree<Flm>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more