Struct lib_ruby_parser::source::MagicComment [−][src]
#[repr(C)]pub struct MagicComment { pub kind: MagicCommentKind, pub key_l: Loc, pub value_l: Loc, }
Expand description
Representation of a magic comment in Ruby
Fields
kind: MagicCommentKind
Kind of a magic comment
key_l: Loc
Location of the “key”:
# encoding: utf-8
~~~~~~~~
value_l: Loc
Location of the “value”:
# encoding: utf-8
~~~~~
Implementations
Constructor
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MagicComment
impl Send for MagicComment
impl Sync for MagicComment
impl Unpin for MagicComment
impl UnwindSafe for MagicComment
Blanket Implementations
Mutably borrows from an owned value. Read more