pub struct Comment<'input> {
pub value: &'input str,
pub span: Span,
}
Expand description
A comment.
Fields§
§value: &'input str
The comment itself.
span: Span
Where the comment is located in the original string.
Trait Implementations§
Source§impl<'de: 'input, 'input> Deserialize<'de> for Comment<'input>
impl<'de: 'input, 'input> Deserialize<'de> for Comment<'input>
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<'input> Copy for Comment<'input>
impl<'input> Eq for Comment<'input>
impl<'input> StructuralPartialEq for Comment<'input>
Auto Trait Implementations§
impl<'input> Freeze for Comment<'input>
impl<'input> RefUnwindSafe for Comment<'input>
impl<'input> Send for Comment<'input>
impl<'input> Sync for Comment<'input>
impl<'input> Unpin for Comment<'input>
impl<'input> UnwindSafe for Comment<'input>
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