Struct lib_ruby_parser::source::MagicComment
source · [−]#[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”:
~~~~~~~~
value_l: Loc
Location of the “value”:
~~~~~
Trait Implementations
sourceimpl Clone for MagicComment
impl Clone for MagicComment
sourcefn clone(&self) -> MagicComment
fn clone(&self) -> MagicComment
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 MagicComment
impl Debug for MagicComment
sourceimpl PartialEq<MagicComment> for MagicComment
impl PartialEq<MagicComment> for MagicComment
sourcefn eq(&self, other: &MagicComment) -> bool
fn eq(&self, other: &MagicComment) -> bool
impl StructuralPartialEq for MagicComment
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
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