pub struct RdTagged { /* private fields */ }Expand description
A tagged node with optional bracket content and positional children.
Implementations§
Source§impl RdTagged
impl RdTagged
Sourcepub fn inspect_sexpr<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdSexpr<'a>, RdOptionError>
pub fn inspect_sexpr<'a>( &'a self, base_path: &RdPath, ) -> Result<RdSexpr<'a>, RdOptionError>
Strictly inspects a \\Sexpr{code} node.
Sourcepub fn inspect_rd_opts<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdOpts<'a>, RdOptionError>
pub fn inspect_rd_opts<'a>( &'a self, base_path: &RdPath, ) -> Result<RdOpts<'a>, RdOptionError>
Strictly inspects a \\RdOpts{options} node.
Source§impl RdTagged
impl RdTagged
Sourcepub fn inspect_equation<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdEquation<'a>, RdShapeError>
pub fn inspect_equation<'a>( &'a self, base_path: &RdPath, ) -> Result<RdEquation<'a>, RdShapeError>
Strictly inspects a \eqn or \deqn equation. The first argument is
LaTeX and the optional second argument is its ASCII/text fallback.
Source§impl RdTagged
impl RdTagged
Sourcepub fn inspect_link<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdLink<'a>, RdShapeError>
pub fn inspect_link<'a>( &'a self, base_path: &RdPath, ) -> Result<RdLink<'a>, RdShapeError>
A wrong tag uses UnexpectedNode; actual: Tagged identifies the
node kind while the expected variant identifies the requested view.
pub fn inspect_href<'a>( &'a self, base_path: &RdPath, ) -> Result<RdHref<'a>, RdShapeError>
Source§impl RdTagged
impl RdTagged
Sourcepub fn inspect_list<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdList<'a>, RdShapeError>
pub fn inspect_list<'a>( &'a self, base_path: &RdPath, ) -> Result<RdList<'a>, RdShapeError>
Strictly inspects a single list container. Itemize and enumerate use zero-child item markers; describe uses two positional groups per item.
Source§impl RdTagged
impl RdTagged
Sourcepub fn inspect_tabular<'a>(
&'a self,
base_path: &RdPath,
) -> Result<RdTabular<'a>, RdShapeError>
pub fn inspect_tabular<'a>( &'a self, base_path: &RdPath, ) -> Result<RdTabular<'a>, RdShapeError>
Strictly inspects a \\tabular container. Container-shape failures
are returned atomically; malformed separators, column-specification
characters, and row widths are retained as diagnostics on the view.
A terminal \\tab does not create a trailing empty cell, matching
R’s Rd2HTML rendering.