Enum solang_parser::pt::Comment
source · pub enum Comment {
Line(Loc, String),
Block(Loc, String),
DocLine(Loc, String),
DocBlock(Loc, String),
}
Expand description
A comment or doc comment.
Variants§
Line(Loc, String)
A line comment.
// line comment
Block(Loc, String)
A block doc comment.
/* block comment */
DocLine(Loc, String)
A line doc comment.
/// line doc comment
DocBlock(Loc, String)
A block doc comment.
/**
* block doc comment
*/
Implementations§
Trait Implementations§
source§impl OptionalCodeLocation for Comment
impl OptionalCodeLocation for Comment
source§impl PartialEq for Comment
impl PartialEq for Comment
impl Eq for Comment
impl StructuralEq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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