Struct table_to_html::html::HtmlElement
source · pub struct HtmlElement { /* private fields */ }
Expand description
A HTML element representation.
Implementations§
source§impl HtmlElement
impl HtmlElement
sourcepub fn new<S>(tag: S, attrs: Vec<Attribute>, value: Option<HtmlValue>) -> Self
pub fn new<S>(tag: S, attrs: Vec<Attribute>, value: Option<HtmlValue>) -> Self
Creates new HTML element
None value considered to represent void element.
sourcepub fn void<S>(tag: S, attrs: Vec<Attribute>) -> Self
pub fn void<S>(tag: S, attrs: Vec<Attribute>) -> Self
Creates a new HTML element with no content.
sourcepub fn visit<V>(&self, visitor: V)where
V: HtmlVisitor,
pub fn visit<V>(&self, visitor: V)where
V: HtmlVisitor,
Visits all desending elements starting from itself.
sourcepub fn visit_mut<V>(&mut self, visitor: V)where
V: HtmlVisitorMut,
pub fn visit_mut<V>(&mut self, visitor: V)where
V: HtmlVisitorMut,
Visits all desending elements starting from itself.
Trait Implementations§
source§impl Clone for HtmlElement
impl Clone for HtmlElement
source§fn clone(&self) -> HtmlElement
fn clone(&self) -> HtmlElement
Returns a copy 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 HtmlElement
impl Debug for HtmlElement
source§impl Default for HtmlElement
impl Default for HtmlElement
source§fn default() -> HtmlElement
fn default() -> HtmlElement
Returns the “default value” for a type. Read more
source§impl Display for HtmlElement
impl Display for HtmlElement
source§impl From<HtmlTable> for HtmlElement
impl From<HtmlTable> for HtmlElement
source§impl Hash for HtmlElement
impl Hash for HtmlElement
source§impl Ord for HtmlElement
impl Ord for HtmlElement
source§fn cmp(&self, other: &HtmlElement) -> Ordering
fn cmp(&self, other: &HtmlElement) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HtmlElement
impl PartialEq for HtmlElement
source§fn eq(&self, other: &HtmlElement) -> bool
fn eq(&self, other: &HtmlElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HtmlElement
impl PartialOrd for HtmlElement
source§fn partial_cmp(&self, other: &HtmlElement) -> Option<Ordering>
fn partial_cmp(&self, other: &HtmlElement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for HtmlElement
impl StructuralEq for HtmlElement
impl StructuralPartialEq for HtmlElement
Auto Trait Implementations§
impl RefUnwindSafe for HtmlElement
impl Send for HtmlElement
impl Sync for HtmlElement
impl Unpin for HtmlElement
impl UnwindSafe for HtmlElement
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