pub struct Anchor {
pub children: Vec<HtmlDomNode>,
pub attributes: KeyMap<String, String>,
pub classes: ClassList,
pub height: f64,
pub depth: f64,
pub max_font_size: f64,
pub style: CssStyle,
}
Expand description
Anchor element with hyperlink
Fields§
§children: Vec<HtmlDomNode>
Child nodes contained within this anchor
attributes: KeyMap<String, String>
HTML attributes for this anchor element
classes: ClassList
CSS classes applied to this anchor
height: f64
Height of this anchor element
depth: f64
Depth of this anchor element
max_font_size: f64
Maximum font size used in this anchor
style: CssStyle
Inline CSS style object
Implementations§
Trait Implementations§
Source§impl From<Anchor> for HtmlDomNode
impl From<Anchor> for HtmlDomNode
Source§impl VirtualNode for Anchor
Implement VirtualNode for Anchor
impl VirtualNode for Anchor
Implement VirtualNode for Anchor
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 Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnwindSafe for Anchor
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