pub struct DocstringParser { /* private fields */ }Expand description
@acp:summary “Parses Python docstrings” @acp:lock normal
Implementations§
Source§impl DocstringParser
impl DocstringParser
Sourcepub fn extensions(&self) -> &PythonDocExtensions
pub fn extensions(&self) -> &PythonDocExtensions
@acp:summary “Gets the parsed Python extensions”
Sourcepub fn detect_style(raw: &str) -> DocstringStyle
pub fn detect_style(raw: &str) -> DocstringStyle
@acp:summary “Detects the docstring style”
Trait Implementations§
Source§impl Default for DocstringParser
impl Default for DocstringParser
Source§impl DocStandardParser for DocstringParser
impl DocStandardParser for DocstringParser
Source§fn to_suggestions(
&self,
parsed: &ParsedDocumentation,
target: &str,
line: usize,
) -> Vec<Suggestion>
fn to_suggestions( &self, parsed: &ParsedDocumentation, target: &str, line: usize, ) -> Vec<Suggestion>
@acp:summary “Converts parsed docstring to ACP suggestions with Python-specific handling”
Source§fn parse(&self, raw_comment: &str) -> ParsedDocumentation
fn parse(&self, raw_comment: &str) -> ParsedDocumentation
@acp:summary “Parses a raw doc comment into structured documentation”
Source§fn standard_name(&self) -> &'static str
fn standard_name(&self) -> &'static str
@acp:summary “Gets the standard name”
Auto Trait Implementations§
impl Freeze for DocstringParser
impl RefUnwindSafe for DocstringParser
impl Send for DocstringParser
impl Sync for DocstringParser
impl Unpin for DocstringParser
impl UnwindSafe for DocstringParser
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> 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