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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MagicComment) -> bool
fn ne(&self, other: &MagicComment) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more