pub enum Content {
Text(String),
Element(Element),
Html(String),
}
Expand description
Represent content in HTML.
Variants§
Implementations§
source§impl Content
impl Content
sourcepub fn text(s: &str) -> Self
pub fn text(s: &str) -> Self
Create a new Content::Text
.
sourcepub fn element(e: &Element) -> Self
pub fn element(e: &Element) -> Self
Create a new Content::Element
.
sourcepub fn html(s: &str) -> Self
pub fn html(s: &str) -> Self
Create a new Content::Html
.
Trait Implementations§
source§impl PartialEq for Content
impl PartialEq for Content
impl Eq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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