pub struct IndexDocument {
pub title: String,
pub nodes: Vec<IndexNode>,
pub metadata: Metadata,
}Expand description
A semantic document emitted by the transformer and consumed by renderers.
Fields§
§title: StringDocument title.
nodes: Vec<IndexNode>Ordered semantic nodes.
metadata: MetadataOptional page metadata.
Implementations§
Trait Implementations§
Source§impl Clone for IndexDocument
impl Clone for IndexDocument
Source§fn clone(&self) -> IndexDocument
fn clone(&self) -> IndexDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexDocument
impl Debug for IndexDocument
Source§impl Default for IndexDocument
impl Default for IndexDocument
Source§fn default() -> IndexDocument
fn default() -> IndexDocument
Returns the “default value” for a type. Read more
Source§impl PartialEq for IndexDocument
impl PartialEq for IndexDocument
Source§fn eq(&self, other: &IndexDocument) -> bool
fn eq(&self, other: &IndexDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IndexDocument
impl StructuralPartialEq for IndexDocument
Auto Trait Implementations§
impl Freeze for IndexDocument
impl RefUnwindSafe for IndexDocument
impl Send for IndexDocument
impl Sync for IndexDocument
impl Unpin for IndexDocument
impl UnsafeUnpin for IndexDocument
impl UnwindSafe for IndexDocument
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