Trait ReverseLiteralInterpretation

Source
pub trait ReverseLiteralInterpretation: Interpretation {
    type Literal;
    type Literals<'a>: Clone + Iterator<Item = &'a Self::Literal>
       where Self: 'a;

    // Required method
    fn literals_of<'a>(&'a self, id: &'a Self::Resource) -> Self::Literals<'a>;
}

Required Associated Types§

Source

type Literal

Source

type Literals<'a>: Clone + Iterator<Item = &'a Self::Literal> where Self: 'a

Required Methods§

Source

fn literals_of<'a>(&'a self, id: &'a Self::Resource) -> Self::Literals<'a>

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 ReverseLiteralInterpretation for ()

Source§

type Literal = Literal

Source§

type Literals<'a> = IntoIter<&'a Literal>

Source§

fn literals_of<'a>(&'a self, id: &'a Self::Resource) -> Self::Literals<'a>

Source§

impl<T: ReverseLiteralInterpretation> ReverseLiteralInterpretation for &T

Source§

type Literal = <T as ReverseLiteralInterpretation>::Literal

Source§

type Literals<'a> = <T as ReverseLiteralInterpretation>::Literals<'a> where Self: 'a

Source§

fn literals_of<'a>(&'a self, id: &'a Self::Resource) -> Self::Literals<'a>

Source§

impl<T: ReverseLiteralInterpretation> ReverseLiteralInterpretation for &mut T

Source§

type Literal = <T as ReverseLiteralInterpretation>::Literal

Source§

type Literals<'a> = <T as ReverseLiteralInterpretation>::Literals<'a> where Self: 'a

Source§

fn literals_of<'a>(&'a self, id: &'a Self::Resource) -> Self::Literals<'a>

Implementors§