Skip to main content

ElementType

Trait ElementType 

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

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

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl ElementType<'static> for Booking

Source§

impl ElementType<'static> for Flag

Source§

impl ElementType<'static> for SimpleValue<'_>

Source§

impl ElementType<'static> for Account<'_>

Source§

impl ElementType<'static> for AccountName<'_>

Source§

impl ElementType<'static> for AccountTypeName<'_>

Source§

impl ElementType<'static> for Balance<'_>

Source§

impl ElementType<'static> for CostSpec<'_>

Source§

impl ElementType<'static> for Currency<'_>

Source§

impl ElementType<'static> for Directive<'_>

Source§

impl ElementType<'static> for ExprValue

Source§

impl ElementType<'static> for Key<'_>

Source§

impl ElementType<'static> for Link<'_>

Source§

impl ElementType<'static> for Posting<'_>

Source§

impl ElementType<'static> for Price<'_>

Source§

impl ElementType<'static> for Tag<'_>