pub enum Comment {
Line(String),
Block(String),
Doc(String),
}Expand description
A comment in Elm source code.
Variants§
Line(String)
A single-line comment: -- this is a comment
Block(String)
A multi-line block comment: {- this is a comment -}
These can be nested in Elm.
Doc(String)
A documentation comment: {-| This is a doc comment -}
Trait Implementations§
impl Eq for Comment
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin 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