Query

Trait Query 

Source
pub trait Query<'a, 'b>: Sized {
    // Required method
    fn get(name: &str, element: &'b Element<'a>) -> Result<'a, Self>;
}

Required Methods§

Source

fn get(name: &str, element: &'b Element<'a>) -> Result<'a, 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.

Implementations on Foreign Types§

Source§

impl<'a, 'b> Query<'a, 'b> for bool

Source§

fn get(name: &str, element: &'b Element<'a>) -> Result<'a, Self>

Source§

impl<'a, 'b, T: FromAttribute<'a, 'b>> Query<'a, 'b> for Option<T>

Source§

fn get(name: &str, element: &'b Element<'a>) -> Result<'a, Self>

Implementors§

Source§

impl<'a, 'b, T: FromAttribute<'a, 'b>> Query<'a, 'b> for T