pub struct CrossRef {
pub db: ObjectDB,
/* private fields */
}Expand description
CrossRef post-processor.
Port of LaTeXML::Post::CrossRef.
Fields§
§db: ObjectDBReference to the shared ObjectDB.
Implementations§
Trait Implementations§
Source§impl Processor for CrossRef
impl Processor for CrossRef
Source§fn to_process(&self, doc: &PostDocument) -> Vec<Node>
fn to_process(&self, doc: &PostDocument) -> Vec<Node>
Return the nodes to be processed; by default the document element.
This allows processors to focus on specific kinds of nodes,
or to skip processing if there are none to process.
Source§fn process(&mut self, doc: PostDocument, _nodes: Vec<Node>) -> ProcessResult
fn process(&mut self, doc: PostDocument, _nodes: Vec<Node>) -> ProcessResult
Process the document given the nodes returned by
to_process.
Returns the resulting document(s) — splitting may produce multiple.Source§fn resource_directory(&self) -> Option<&str>
fn resource_directory(&self) -> Option<&str>
Resource directory for generated resources (images, etc.).
Source§fn resource_prefix(&self) -> Option<&str>
fn resource_prefix(&self) -> Option<&str>
Resource prefix for generated resource filenames.
Source§fn desired_resource_pathname(
&self,
_doc: &PostDocument,
_node: &Node,
_source: Option<&str>,
_type_ext: Option<&str>,
) -> Option<PathBuf>
fn desired_resource_pathname( &self, _doc: &PostDocument, _node: &Node, _source: Option<&str>, _type_ext: Option<&str>, ) -> Option<PathBuf>
Hint for a desired resource pathname.
Source§fn generate_resource_pathname(
&self,
doc: &mut PostDocument,
_node: &Node,
_source: Option<&str>,
type_ext: Option<&str>,
) -> PathBuf
fn generate_resource_pathname( &self, doc: &mut PostDocument, _node: &Node, _source: Option<&str>, type_ext: Option<&str>, ) -> PathBuf
Auto-generate a unique resource pathname using a counter from the doc cache.
Auto Trait Implementations§
impl !Freeze for CrossRef
impl !RefUnwindSafe for CrossRef
impl !Send for CrossRef
impl !Sync for CrossRef
impl !UnwindSafe for CrossRef
impl Unpin for CrossRef
impl UnsafeUnpin for CrossRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more