[][src]Struct khtml::Tag

pub struct Tag {
    pub name: &'static str,
    pub attrs: Vec<(&'static str, Box<dyn Display>)>,
    pub children: Vec<Box<dyn Child>>,
}

Fields

name: &'static strattrs: Vec<(&'static str, Box<dyn Display>)>children: Vec<Box<dyn Child>>

Implementations

impl Tag[src]

pub fn with_children<V: Child + 'static, T: IntoIterator<Item = V>>(
    self,
    children: T
) -> Self
[src]

pub fn add_children<V: Child + 'static, T: IntoIterator<Item = V>>(
    self,
    children: T
) -> Self
[src]

Trait Implementations

impl Display for Tag[src]

Auto Trait Implementations

impl !RefUnwindSafe for Tag

impl !Send for Tag

impl !Sync for Tag

impl Unpin for Tag

impl !UnwindSafe for Tag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Child for T where
    T: 'static + Display
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.