pub struct TraversalEngine { /* private fields */ }Expand description
Graph traversal engine for UCM documents
Implementations§
Source§impl TraversalEngine
impl TraversalEngine
Sourcepub fn with_config(config: TraversalConfig) -> Self
pub fn with_config(config: TraversalConfig) -> Self
Create a traversal engine with custom configuration
Navigate from a starting point in a specific direction
Sourcepub fn expand(
&self,
doc: &Document,
node_id: &BlockId,
output: TraversalOutput,
) -> Result<TraversalResult>
pub fn expand( &self, doc: &Document, node_id: &BlockId, output: TraversalOutput, ) -> Result<TraversalResult>
Expand a node to get its immediate children
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraversalEngine
impl RefUnwindSafe for TraversalEngine
impl Send for TraversalEngine
impl Sync for TraversalEngine
impl Unpin for TraversalEngine
impl UnwindSafe for TraversalEngine
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