pub struct DocumentStructure {
pub root: StructureId,
pub nodes: Vec<StructureNode>,
}Expand description
Backend-neutral logical structure for a laid-out document.
Fields§
§root: StructureId§nodes: Vec<StructureNode>Implementations§
Source§impl DocumentStructure
impl DocumentStructure
Sourcepub fn node(&self, id: StructureId) -> Option<&StructureNode>
pub fn node(&self, id: StructureId) -> Option<&StructureNode>
Resolve a result-local structure identity.
Trait Implementations§
Source§impl Clone for DocumentStructure
impl Clone for DocumentStructure
Source§fn clone(&self) -> DocumentStructure
fn clone(&self) -> DocumentStructure
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 DocumentStructure
impl Debug for DocumentStructure
impl Eq for DocumentStructure
Source§impl PartialEq for DocumentStructure
impl PartialEq for DocumentStructure
impl StructuralPartialEq for DocumentStructure
Auto Trait Implementations§
impl Freeze for DocumentStructure
impl RefUnwindSafe for DocumentStructure
impl Send for DocumentStructure
impl Sync for DocumentStructure
impl Unpin for DocumentStructure
impl UnsafeUnpin for DocumentStructure
impl UnwindSafe for DocumentStructure
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