pub struct McidMapping { /* private fields */ }Expand description
Mapping from (page ObjectId, MCID) to structure element information.
Built by walking the structure tree and collecting all MCID associations.
Implementations§
Source§impl McidMapping
impl McidMapping
Sourcepub fn from_struct_tree(tree: &StructTree) -> Self
pub fn from_struct_tree(tree: &StructTree) -> Self
Build an MCID mapping by iteratively walking the structure tree.
Sourcepub fn element_for_mcid(
&self,
page_id: ObjectId,
mcid: i64,
) -> Option<&StructElement>
pub fn element_for_mcid( &self, page_id: ObjectId, mcid: i64, ) -> Option<&StructElement>
Look up the structure element for a given page and MCID.
Trait Implementations§
Source§impl Clone for McidMapping
impl Clone for McidMapping
Source§fn clone(&self) -> McidMapping
fn clone(&self) -> McidMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McidMapping
impl RefUnwindSafe for McidMapping
impl Send for McidMapping
impl Sync for McidMapping
impl Unpin for McidMapping
impl UnsafeUnpin for McidMapping
impl UnwindSafe for McidMapping
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