Trait ElementType

Source
pub trait ElementType {
    // Required method
    fn element_type(&self) -> &'static str;
}
Expand description

Implemented by any element, for access to its kind in error reporting.

Required Methods§

Source

fn element_type(&self) -> &'static str

Implementations on Foreign Types§

Source§

impl<T> ElementType for &T
where T: ElementType,

Source§

fn element_type(&self) -> &'static str

Source§

impl<T> ElementType for &mut T
where T: ElementType,

Source§

fn element_type(&self) -> &'static str

Source§

impl<T> ElementType for Box<T>
where T: ElementType,

Source§

fn element_type(&self) -> &'static str

Implementors§