pub enum DocstringFormat {
PythonTripleQuote,
JSDoc,
Rustdoc,
GoDoc,
JavaDoc,
Other(String),
}Expand description
The format of a docstring extracted from source code.
Identifies the docstring convention used, which varies by language
(e.g., Python triple-quoted strings, JSDoc, Rustdoc /// comments).
Variants§
Trait Implementations§
Source§impl Clone for DocstringFormat
impl Clone for DocstringFormat
Source§fn clone(&self) -> DocstringFormat
fn clone(&self) -> DocstringFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocstringFormat
impl Debug for DocstringFormat
Source§impl Default for DocstringFormat
impl Default for DocstringFormat
Source§fn default() -> DocstringFormat
fn default() -> DocstringFormat
Returns the “default value” for a type. Read more
Source§impl Hash for DocstringFormat
impl Hash for DocstringFormat
Source§impl PartialEq for DocstringFormat
impl PartialEq for DocstringFormat
impl Eq for DocstringFormat
impl StructuralPartialEq for DocstringFormat
Auto Trait Implementations§
impl Freeze for DocstringFormat
impl RefUnwindSafe for DocstringFormat
impl Send for DocstringFormat
impl Sync for DocstringFormat
impl Unpin for DocstringFormat
impl UnsafeUnpin for DocstringFormat
impl UnwindSafe for DocstringFormat
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