pub struct RehydrationEngine { /* private fields */ }Expand description
The rehydration engine
Implementations§
Source§impl RehydrationEngine
impl RehydrationEngine
Sourcepub fn new(graph: GraphStore) -> Self
pub fn new(graph: GraphStore) -> Self
Create a new rehydration engine
Sourcepub async fn create_view(
&self,
atom_ids: Vec<String>,
config: ViewConfig,
) -> CadiResult<VirtualView>
pub async fn create_view( &self, atom_ids: Vec<String>, config: ViewConfig, ) -> CadiResult<VirtualView>
Create a virtual view from requested atom IDs
Sourcepub async fn create_expanded_view(
&self,
atom_ids: Vec<String>,
expansion_depth: usize,
max_tokens: usize,
) -> CadiResult<VirtualView>
pub async fn create_expanded_view( &self, atom_ids: Vec<String>, expansion_depth: usize, max_tokens: usize, ) -> CadiResult<VirtualView>
Create a view with explicit control over ghost imports
Sourcepub fn estimate_tokens(&self, atom_ids: &[String]) -> CadiResult<usize>
pub fn estimate_tokens(&self, atom_ids: &[String]) -> CadiResult<usize>
Get token estimate for a set of atoms
Sourcepub fn find_defining_atoms(&self, symbol: &str) -> CadiResult<Vec<String>>
pub fn find_defining_atoms(&self, symbol: &str) -> CadiResult<Vec<String>>
Find atoms that define a specific symbol
Sourcepub async fn view_for_symbol(
&self,
symbol: &str,
config: ViewConfig,
) -> CadiResult<VirtualView>
pub async fn view_for_symbol( &self, symbol: &str, config: ViewConfig, ) -> CadiResult<VirtualView>
Create a view for a specific symbol with context
Sourcepub async fn signatures_view(
&self,
atom_ids: Vec<String>,
) -> CadiResult<VirtualView>
pub async fn signatures_view( &self, atom_ids: Vec<String>, ) -> CadiResult<VirtualView>
Create a minimal view with just type signatures
Auto Trait Implementations§
impl Freeze for RehydrationEngine
impl !RefUnwindSafe for RehydrationEngine
impl Send for RehydrationEngine
impl Sync for RehydrationEngine
impl Unpin for RehydrationEngine
impl !UnwindSafe for RehydrationEngine
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