Skip to main content

PortableNodeSnapshot

Struct PortableNodeSnapshot 

Source
pub struct PortableNodeSnapshot {
Show 21 fields pub handle: PortableNodeHandle, pub kind: PortableNodeKind, pub subtype: i32, pub source: Option<PortableSourceSpan>, pub link: Option<PortableNodeHandle>, pub font: i32, pub character: i32, pub width: i32, pub height: i32, pub depth: i32, pub shift: i32, pub list: Option<PortableNodeHandle>, pub leader: Option<PortableNodeHandle>, pub native_glyphs: Vec<PortableNativeGlyph>, pub glue_set: f64, pub glue_sign: i32, pub glue_order: i32, pub glue_stretch: i32, pub glue_shrink: i32, pub glue_stretch_order: i32, pub glue_shrink_order: i32,
}
Expand description

A read only copy of one node’s fields, dimensions in scaled points.

Fields§

§handle: PortableNodeHandle

The node.

§kind: PortableNodeKind

What the node is.

§subtype: i32

The raw subtype byte, the span count of an unset box.

§source: Option<PortableSourceSpan>

Where the node came from when source tracking is on.

§link: Option<PortableNodeHandle>

The next node in its list.

§font: i32

Font of a character, ligature, native word or native glyph.

§character: i32

Character of a character or ligature, glyph of a native glyph, record id of a host box marker.

§width: i32

Width, the natural width of glue and the surround of a math node.

§height: i32

Height.

§depth: i32

Depth.

§shift: i32

Shift of a box.

§list: Option<PortableNodeHandle>

Contents of a box, or the original characters of a ligature.

§leader: Option<PortableNodeHandle>

Leader box or rule of leader glue.

§native_glyphs: Vec<PortableNativeGlyph>

Shaped glyphs of a native word or glyph.

§glue_set: f64

Box glue set ratio from hpack or vpack.

§glue_sign: i32

Box glue sign: 0 normal, 1 stretching, 2 shrinking.

§glue_order: i32

Box glue order that stretches or shrinks.

§glue_stretch: i32

Stretch of glue or of an unset box.

§glue_shrink: i32

Shrink of glue or of an unset box.

§glue_stretch_order: i32

Order of the stretch of glue or of an unset box.

§glue_shrink_order: i32

Order of the shrink of glue or of an unset box.

Trait Implementations§

Source§

impl Clone for PortableNodeSnapshot

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PortableNodeSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PortableNodeSnapshot

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PortableNodeSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.