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
Document
Document comment like
=begin
comment
=end
Unknown
Uknknown comment type,
most probably means that either Loc
or given Input
is invalid
Trait Implementations
sourceimpl Clone for CommentType
impl Clone for CommentType
sourcefn clone(&self) -> CommentType
fn clone(&self) -> CommentType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CommentType
impl Debug for CommentType
sourceimpl PartialEq<CommentType> for CommentType
impl PartialEq<CommentType> for CommentType
sourcefn eq(&self, other: &CommentType) -> bool
fn eq(&self, other: &CommentType) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more