pub struct NodeStyle {
pub id: u32,
pub element: &'static str,
pub style: u32,
pub first_letter: Option<u32>,
pub first_line: Option<u32>,
pub before: Option<u32>,
pub after: Option<u32>,
}Expand description
One node’s place in the tree: what it is, and which style it got.
Fields§
§id: u32The content node this style belongs to.
element: &'static strThe element name selectors matched against.
style: u32Index into the tree’s distinct styles.
first_letter: Option<u32>Index of the style ::first-letter computed for this node,
when a rule named one.
first_line: Option<u32>Index of the style ::first-line computed for this node, when
a rule named one.
before: Option<u32>Index of the style ::before computed for this node, when it
generates text.
after: Option<u32>Index of the style ::after computed for this node, when it
generates text.
Trait Implementations§
impl StructuralPartialEq for NodeStyle
Auto Trait Implementations§
impl Freeze for NodeStyle
impl RefUnwindSafe for NodeStyle
impl Send for NodeStyle
impl Sync for NodeStyle
impl Unpin for NodeStyle
impl UnsafeUnpin for NodeStyle
impl UnwindSafe for NodeStyle
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<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.