Enum lib_ruby_parser::source::CommentType
source · #[repr(C)]pub enum CommentType {
Inline,
Document,
Unknown,
}
Expand description
Enum of all possible comment types
Variants§
Inline
Inline comment like
# comment
Document
Document comment like
=begin
comment
=end
Unknown
Uknknown comment type,
most probably means that either Loc
or given Input
is invalid
Trait Implementations§
source§impl Clone for CommentType
impl Clone for CommentType
source§fn clone(&self) -> CommentType
fn clone(&self) -> CommentType
Returns a copy of the value. Read more
1.0.0 · 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 CommentType
impl Debug for CommentType
source§impl PartialEq<CommentType> for CommentType
impl PartialEq<CommentType> for CommentType
source§fn eq(&self, other: &CommentType) -> bool
fn eq(&self, other: &CommentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CommentType
impl StructuralEq for CommentType
impl StructuralPartialEq for CommentType
Auto Trait Implementations§
impl RefUnwindSafe for CommentType
impl Send for CommentType
impl Sync for CommentType
impl Unpin for CommentType
impl UnwindSafe for CommentType
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