Trait Presenter

Source
pub trait Presenter: Write + Sized {
    type N: AsRef<Notation>;

    // Required methods
    fn get_notation(&mut self, uri: &SymbolURI) -> Option<Self::N>;
    fn get_op_notation(&mut self, uri: &SymbolURI) -> Option<Self::N>;
    fn get_variable_notation(
        &mut self,
        uri: &DocumentElementURI,
    ) -> Option<Self::N>;
    fn get_variable_op_notation(
        &mut self,
        uri: &DocumentElementURI,
    ) -> Option<Self::N>;
    fn in_text(&self) -> bool;

    // Provided method
    fn cont(&mut self, tm: &Term) -> Result<(), PresentationError> { ... }
}

Required Associated Types§

Required Methods§

Source

fn get_notation(&mut self, uri: &SymbolURI) -> Option<Self::N>

Source

fn get_op_notation(&mut self, uri: &SymbolURI) -> Option<Self::N>

Source

fn get_variable_notation(&mut self, uri: &DocumentElementURI) -> Option<Self::N>

Source

fn get_variable_op_notation( &mut self, uri: &DocumentElementURI, ) -> Option<Self::N>

Source

fn in_text(&self) -> bool

Provided Methods§

Source

fn cont(&mut self, tm: &Term) -> Result<(), PresentationError>

§Errors

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.

Implementors§