pub enum Content {
Element(ElementPtr),
CharData(String),
CDSect(String),
Comment(String),
Reference(String),
}Variants
Element(ElementPtr)
CharData(String)
CDSect(String)
Comment(String)
Reference(String)
Implementations
sourceimpl Content
impl Content
pub fn new_element(element: Element) -> Self
pub fn new_char_data(char_data: String) -> Self
pub fn new_cd_sect(cd_sect: String) -> Self
pub fn new_comment(comment: String) -> Self
pub fn new_reference(reference: String) -> Self
pub fn from_string(string: String) -> Result<Vec<Content>, Vec<String>>
pub fn to_string(&self) -> String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more