pub enum NodeType {
Show 16 variants
Char = 0,
HList = 1,
VList = 2,
Rule = 3,
Insertion = 4,
Mark = 5,
Adjust = 6,
Ligature = 7,
Discretionary = 8,
WhatsIt = 9,
Math = 10,
Glue = 11,
Kern = 12,
Penalty = 13,
Unset = 14,
MathChar = 15,
}Expand description
The type of a Node, as returned
by \lastnodetype
Variants§
Char = 0
A character node, e.g. a or 1.
HList = 1
A horizontal list node, e.g. \hbox{...}.
VList = 2
A vertical list node, e.g. \vbox{...}.
Rule = 3
A rule node, e.g. \hrule.
Insertion = 4
An insertion node as produced by \insert.
Mark = 5
A mark node as produced by \mark.
Adjust = 6
An adjust node as produced by \vadjust.
Ligature = 7
A ligature node as produced by the ligaturing algorithm.
Discretionary = 8
A discretionary node as produced by the discretionary algorithm.
WhatsIt = 9
A whatsit node, e.g. \special.
Math = 10
A math node.
Glue = 11
A glue node, e.g. \hskip.
Kern = 12
A kern node, e.g. \kern.
Penalty = 13
A penalty node as produced by \penalty.
Unset = 14
An unset node, e.g. \unskip.
MathChar = 15
A math character node, e.g. a or 1 in math mode.
Implementations§
Trait Implementations§
impl Copy for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnsafeUnpin for NodeType
impl UnwindSafe for NodeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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