[][src]Trait ovgu_canteen::FromElement

pub trait FromElement: Sized {
    type Err;
    fn from_element(e: &ElementRef) -> Result<Self, Self::Err>;
}

This trait is used to create an instance from a HTML element reference.

Associated Types

type Err

This is the error type used when the creation from a HTML element fails.

Loading content...

Required methods

fn from_element(e: &ElementRef) -> Result<Self, Self::Err>

Create an instance of Self from a HTML element reference.

Arguments

e - The HTML element reference.

Returns

A result containing an instance of Self or an error.

Loading content...

Implementors

impl FromElement for Day[src]

type Err = Error

impl FromElement for Meal[src]

type Err = Error

Loading content...