pub struct CodeGraphNavigatorSession { /* private fields */ }Implementations§
pub fn new(graph: CodeGraphNavigator) -> CodeGraphNavigatorSession
pub fn context(&self) -> &CodeGraphContextSession
pub fn session_id(&self) -> &str
pub fn parent_session_id(&self) -> Option<&str>
pub fn mutation_log(&self) -> &[CodeGraphSessionMutation]
pub fn event_log(&self) -> &[CodeGraphSessionEvent]
pub fn subscribe<F>(&mut self, observer: F)
pub fn selected_block_ids(&self) -> Vec<BlockId>
pub fn summary(&self) -> CodeGraphContextSummary
pub fn fork(&self) -> CodeGraphNavigatorSession
pub fn seed_overview( &mut self, max_depth: Option<usize>, ) -> CodeGraphContextUpdate
pub fn focus( &mut self, selector: Option<&str>, ) -> Result<CodeGraphContextUpdate, Error>
pub fn select( &mut self, selector: &str, detail_level: CodeGraphDetailLevel, ) -> Result<CodeGraphContextUpdate, Error>
pub fn expand( &mut self, selector: &str, mode: CodeGraphExpandMode, traversal: &CodeGraphTraversalConfig, ) -> Result<CodeGraphContextUpdate, Error>
pub fn hydrate_source( &mut self, selector: &str, padding: usize, ) -> Result<CodeGraphContextUpdate, Error>
pub fn hydrate_source_with_budget( &mut self, selector: &str, padding: usize, budget: Option<CodeGraphOperationBudget>, ) -> Result<CodeGraphContextUpdate, Error>
pub fn collapse( &mut self, selector: &str, include_descendants: bool, ) -> Result<CodeGraphContextUpdate, Error>
pub fn pin( &mut self, selector: &str, pinned: bool, ) -> Result<CodeGraphContextUpdate, Error>
pub fn prune(&mut self, max_selected: Option<usize>) -> CodeGraphContextUpdate
pub fn export( &self, render: &CodeGraphRenderConfig, export: &CodeGraphExportConfig, ) -> CodeGraphContextExport
pub fn render_prompt(&self, render: &CodeGraphRenderConfig) -> String
pub fn find_nodes( &self, query: &CodeGraphFindQuery, ) -> Result<Vec<CodeGraphNodeSummary>, Error>
pub fn explain_selector( &self, selector: &str, ) -> CodeGraphSelectorResolutionExplanation
pub fn why_selected( &self, selector: &str, ) -> Result<CodeGraphSelectionExplanation, Error>
pub fn explain_export_omission( &self, selector: &str, render: &CodeGraphRenderConfig, export: &CodeGraphExportConfig, ) -> Result<CodeGraphExportOmissionExplanation, Error>
pub fn why_pruned( &self, selector: &str, ) -> Result<CodeGraphPruneExplanation, Error>
pub fn diff(&self, other: &CodeGraphNavigatorSession) -> CodeGraphSessionDiff
pub fn recommendations(&self, top: usize) -> Vec<CodeGraphRecommendation>
pub fn estimate_expand( &self, selector: &str, mode: CodeGraphExpandMode, traversal: &CodeGraphTraversalConfig, ) -> Result<CodeGraphMutationEstimate, Error>
pub fn estimate_hydrate( &self, selector: &str, padding: usize, budget: Option<CodeGraphOperationBudget>, ) -> Result<CodeGraphMutationEstimate, Error>
pub fn apply_recommended_actions( &mut self, top: usize, padding: usize, depth: Option<usize>, max_add: Option<usize>, priority_threshold: Option<u16>, ) -> Result<CodeGraphRecommendedActionsResult, Error>
pub fn path_between( &self, start_selector: &str, end_selector: &str, max_hops: usize, ) -> Result<Option<CodeGraphPathResult>, Error>
pub fn to_persisted(&self) -> Result<CodeGraphPersistedSession, Error>
pub fn to_json(&self) -> Result<String, Error>
pub fn save(&mut self, path: impl AsRef<Path>) -> Result<(), Error>
Trait Implementations§
Source§fn clone(&self) -> CodeGraphNavigatorSession
fn clone(&self) -> CodeGraphNavigatorSession
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§
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