pub enum Content {
Element(ElementPtr),
CharData(String),
CDSect(String),
Comment(String),
Reference(String),
}Variants§
Implementations§
Source§impl 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>, HxmlError>
pub fn to_string(&self) -> String
Trait Implementations§
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