pub struct DocumentationBlock {
pub text: String,
pub position: Range,
pub doc_type: DocumentationType,
}
Expand description
Documentation block extracted from source code
Fields§
§text: String
Documentation text
position: Range
Position in file
doc_type: DocumentationType
Type of documentation (comment, docstring, etc.)
Trait Implementations§
Source§impl Clone for DocumentationBlock
impl Clone for DocumentationBlock
Source§fn clone(&self) -> DocumentationBlock
fn clone(&self) -> DocumentationBlock
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 DocumentationBlock
impl Debug for DocumentationBlock
Source§impl<'de> Deserialize<'de> for DocumentationBlock
impl<'de> Deserialize<'de> for DocumentationBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentationBlock
impl RefUnwindSafe for DocumentationBlock
impl Send for DocumentationBlock
impl Sync for DocumentationBlock
impl Unpin for DocumentationBlock
impl UnwindSafe for DocumentationBlock
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