FromElem

Trait FromElem 

Source
pub trait FromElem: Sized {
    // Required method
    fn from_elem(e: &Node<'_, '_>) -> Result<Self, Error>;

    // Provided methods
    fn from_string(s: &str) -> Result<Self, Error> { ... }
    fn from_reader<T: BufRead>(r: &mut T) -> Result<Self, Error> { ... }
    fn from_path(p: &Path) -> Result<Self, Error> { ... }
    fn vec_from_children(clds: Children<'_, '_>) -> Vec<Self> { ... }
}

Required Methods§

Source

fn from_elem(e: &Node<'_, '_>) -> Result<Self, Error>

Provided Methods§

Source

fn from_string(s: &str) -> Result<Self, Error>

Source

fn from_reader<T: BufRead>(r: &mut T) -> Result<Self, Error>

Source

fn from_path(p: &Path) -> Result<Self, Error>

Source

fn vec_from_children(clds: Children<'_, '_>) -> Vec<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§