pub trait Object {
// Provided methods
fn stringify(&self) -> String { ... }
fn isa_box(&self) -> bool { ... }
fn is_expandable(&self) -> bool { ... }
fn is_definition(&self) -> bool { ... }
fn is_comment(&self) -> bool { ... }
fn be_digested(self) -> Result<Digested>
where Self: Sized + Debug { ... }
fn get_locator(&self) -> Option<Locator> { ... }
fn revert(&self) -> Result<Tokens> { ... }
}Expand description
Base object for all LaTeXML Objects.
Defines basic default methods for comparison, printing
Provided Methods§
fn stringify(&self) -> String
fn isa_box(&self) -> bool
fn is_expandable(&self) -> bool
fn is_definition(&self) -> bool
fn is_comment(&self) -> bool
fn be_digested(self) -> Result<Digested>
Sourcefn get_locator(&self) -> Option<Locator>
fn get_locator(&self) -> Option<Locator>
The object’s stored source locator, if it has one. None is the honest
“no recorded source position” (replacing the old Locator::default()
file!()/line!() sentinel). For “where the parser is now” (error
reporting, box creation), use the free fn gullet::get_locator().
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".