#[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
~~~~~
Trait Implementations§
Source§impl Clone for MagicComment
impl Clone for MagicComment
Source§fn clone(&self) -> MagicComment
fn clone(&self) -> MagicComment
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 MagicComment
impl Debug for MagicComment
Source§impl PartialEq for MagicComment
impl PartialEq for MagicComment
impl StructuralPartialEq for MagicComment
Auto Trait Implementations§
impl Freeze for MagicComment
impl RefUnwindSafe for MagicComment
impl Send for MagicComment
impl Sync for MagicComment
impl Unpin for MagicComment
impl UnwindSafe for MagicComment
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