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.
Sourcepub fn build(&self) -> Option<BuildModule>
pub fn build(&self) -> Option<BuildModule>
Returns the build module for build system operations.
Detects the build system from the codebase root. Returns None if
no known build system is detected.
Sourcepub fn as_workspace(&self) -> Result<Workspace>
pub fn as_workspace(&self) -> Result<Workspace>
Returns the workspace view for monorepo awareness.
Sourcepub fn project(&self) -> ProjectModule
pub fn project(&self) -> ProjectModule
Returns the project module for scaffolding and detection.
Sourcepub fn dependency(&self) -> DependencyModule
pub fn dependency(&self) -> DependencyModule
Returns the dependency module for manifest operations.
Sourcepub fn codebase_path(&self) -> &Path
pub fn codebase_path(&self) -> &Path
Returns the codebase path.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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