pub enum Comment<'s> {
MultiLine(&'s str),
SingleLine(&'s str),
ScriptStyle(&'s str),
}
Expand description
A comment.
Variants§
MultiLine(&'s str)
A multi-line comment. Doesn’t necessarily actually span multiple lines.
§Example
/* hello world */
/* multiple
lines */
/**
* documentation
*/
SingleLine(&'s str)
ScriptStyle(&'s str)
Trait Implementations§
impl<'s> Copy for Comment<'s>
impl<'s> StructuralPartialEq for Comment<'s>
Auto Trait Implementations§
impl<'s> Freeze for Comment<'s>
impl<'s> RefUnwindSafe for Comment<'s>
impl<'s> Send for Comment<'s>
impl<'s> Sync for Comment<'s>
impl<'s> Unpin for Comment<'s>
impl<'s> UnwindSafe for Comment<'s>
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