Type Alias StringPresenter

Source
pub type StringPresenter<'a, B> = TermPresenter<'a, String, B>;

Aliased Typeยง

pub struct StringPresenter<'a, B> {
    out: String,
    backend: &'a B,
    in_text: bool,
    cache: VecMap<SymbolURI, Option<Rc<Notation>>>,
    op_cache: VecMap<SymbolURI, Option<Rc<Notation>>>,
    var_cache: VecMap<DocumentElementURI, Option<Rc<Notation>>>,
    var_op_cache: VecMap<DocumentElementURI, Option<Rc<Notation>>>,
}

Fieldsยง

ยงout: Stringยงbackend: &'a Bยงin_text: boolยงcache: VecMap<SymbolURI, Option<Rc<Notation>>>ยงop_cache: VecMap<SymbolURI, Option<Rc<Notation>>>ยงvar_cache: VecMap<DocumentElementURI, Option<Rc<Notation>>>ยงvar_op_cache: VecMap<DocumentElementURI, Option<Rc<Notation>>>

Implementationsยง

Sourceยง

impl<'a, B: Backend> StringPresenter<'a, B>

Source

pub fn new(backend: &'a B, in_text: bool) -> Self

Source

pub fn take(&mut self) -> String

Source

pub fn present(&mut self, term: &Term) -> Result<String, PresentationError>

ยงErrors