pub struct SymbolNode {
pub text: String,
pub height: f64,
pub depth: f64,
pub italic: f64,
pub skew: f64,
pub width: f64,
pub max_font_size: f64,
pub classes: ClassList,
pub style: CssStyle,
}
Expand description
Symbol node containing information about a single symbol
Fields§
§text: String
The text content of this symbol
height: f64
Height of this symbol
depth: f64
Depth of this symbol
italic: f64
Italic correction value
skew: f64
Skew correction value
width: f64
Width of this symbol
max_font_size: f64
Maximum font size used in this symbol
classes: ClassList
CSS classes applied to this symbol
style: CssStyle
Inline CSS style object
Implementations§
Source§impl SymbolNode
impl SymbolNode
Sourcepub fn builder<'f1>() -> SymbolNodeBuilder<'f1>
pub fn builder<'f1>() -> SymbolNodeBuilder<'f1>
Create a new Symbol
Trait Implementations§
Source§impl Clone for SymbolNode
impl Clone for SymbolNode
Source§fn clone(&self) -> SymbolNode
fn clone(&self) -> SymbolNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SymbolNode
impl Debug for SymbolNode
Source§impl From<SymbolNode> for HtmlDomNode
impl From<SymbolNode> for HtmlDomNode
Source§fn from(symbol: SymbolNode) -> Self
fn from(symbol: SymbolNode) -> Self
Converts to this type from the input type.
Source§impl VirtualNode for SymbolNode
Implement VirtualNode for Symbol
impl VirtualNode for SymbolNode
Implement VirtualNode for Symbol
Source§fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
Convert into HTML markup by writing into the provided formatter.
Auto Trait Implementations§
impl Freeze for SymbolNode
impl RefUnwindSafe for SymbolNode
impl Send for SymbolNode
impl Sync for SymbolNode
impl Unpin for SymbolNode
impl UnwindSafe for SymbolNode
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