pub struct GraphApi { /* private fields */ }Expand description
Graph API for code analysis
Implementations§
Source§impl GraphApi
impl GraphApi
Sourcepub fn from_path(path: &Path) -> Result<Self, GraphError>
pub fn from_path(path: &Path) -> Result<Self, GraphError>
Build graph from a project path with workspace resolution.
Sourcepub fn from_project(project: &Project) -> Result<Self, GraphError>
pub fn from_project(project: &Project) -> Result<Self, GraphError>
Build graph from a Project with workspace resolution.
Sourcepub fn from_context(ctx: AnalysisContext, build_time: Duration) -> Self
pub fn from_context(ctx: AnalysisContext, build_time: Duration) -> Self
Build graph from an existing AnalysisContext.
Sourcepub fn build_time(&self) -> Duration
pub fn build_time(&self) -> Duration
Get build time
Sourcepub fn stats(&self) -> GraphStats
pub fn stats(&self) -> GraphStats
Get graph statistics
Sourcepub fn context(&self) -> &AnalysisContext
pub fn context(&self) -> &AnalysisContext
Get the underlying analysis context
Trait Implementations§
Source§impl ToSummary for GraphApi
impl ToSummary for GraphApi
Source§fn to_summary_with_options(&self, opts: &SummaryOptions) -> String
fn to_summary_with_options(&self, opts: &SummaryOptions) -> String
Generate a structured text summary with custom options
Source§fn to_summary(&self) -> String
fn to_summary(&self) -> String
Generate a structured text summary with default options
Auto Trait Implementations§
impl Freeze for GraphApi
impl RefUnwindSafe for GraphApi
impl Send for GraphApi
impl Sync for GraphApi
impl Unpin for GraphApi
impl UnsafeUnpin for GraphApi
impl UnwindSafe for GraphApi
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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