pub struct PluginComment {
pub span: ByteSpan,
pub kind: CommentKind,
}Expand description
One comment a plugin found.
A plugin reports where a comment is and what it is; it never decides whether the comment is removed. That stays with the host’s policy, so one configuration governs built-in and plugin-scanned files alike.
Fields§
§span: ByteSpanWhere the comment’s bytes are, delimiters included.
kind: CommentKindWhat the comment is, which is what the host’s policy then judges.
Trait Implementations§
Source§impl Clone for PluginComment
impl Clone for PluginComment
Source§fn clone(&self) -> PluginComment
fn clone(&self) -> PluginComment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginComment
impl Debug for PluginComment
Source§impl<'de> Deserialize<'de> for PluginComment
impl<'de> Deserialize<'de> for PluginComment
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
impl Eq for PluginComment
Source§impl PartialEq for PluginComment
impl PartialEq for PluginComment
Source§impl Serialize for PluginComment
impl Serialize for PluginComment
impl StructuralPartialEq for PluginComment
Auto Trait Implementations§
impl Freeze for PluginComment
impl RefUnwindSafe for PluginComment
impl Send for PluginComment
impl Sync for PluginComment
impl Unpin for PluginComment
impl UnsafeUnpin for PluginComment
impl UnwindSafe for PluginComment
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