pub struct Forge { /* private fields */ }Expand description
Main entry point for ForgeKit SDK.
The Forge type provides access to all code intelligence modules.
Implementations§
Source§impl Forge
impl Forge
Sourcepub async fn open_with_backend(
path: impl AsRef<Path>,
backend: BackendKind,
) -> Result<Self>
pub async fn open_with_backend( path: impl AsRef<Path>, backend: BackendKind, ) -> Result<Self>
Sourcepub fn backend_kind(&self) -> BackendKind
pub fn backend_kind(&self) -> BackendKind
Returns the backend kind currently in use.
Sourcepub fn graph(&self) -> GraphModule
pub fn graph(&self) -> GraphModule
Returns the graph module for symbol and reference queries.
Sourcepub fn search(&self) -> SearchModule
pub fn search(&self) -> SearchModule
Returns the search module for semantic code queries.
Sourcepub fn edit(&self) -> EditModule
pub fn edit(&self) -> EditModule
Returns the edit module for span-safe refactoring.
Sourcepub fn analysis(&self) -> AnalysisModule
pub fn analysis(&self) -> AnalysisModule
Returns the analysis module for combined operations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Forge
impl RefUnwindSafe for Forge
impl Send for Forge
impl Sync for Forge
impl Unpin for Forge
impl UnsafeUnpin for Forge
impl UnwindSafe for Forge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more