pub struct ContentAnalyzer { /* private fields */ }Expand description
Content analyzer with language-specific parsers
Implementations§
Source§impl ContentAnalyzer
impl ContentAnalyzer
Sourcepub async fn analyze_file(&self, path: &Path) -> Result<ContentStats>
pub async fn analyze_file(&self, path: &Path) -> Result<ContentStats>
Analyze a file and extract comprehensive content information
Sourcepub async fn analyze_content(
&self,
content: &str,
language: &Language,
) -> Result<ContentStats>
pub async fn analyze_content( &self, content: &str, language: &Language, ) -> Result<ContentStats>
Analyze content string directly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContentAnalyzer
impl RefUnwindSafe for ContentAnalyzer
impl Send for ContentAnalyzer
impl Sync for ContentAnalyzer
impl Unpin for ContentAnalyzer
impl UnwindSafe for ContentAnalyzer
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> 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