Struct ruby_prism_sys::pm_comment
source · #[repr(C)]pub struct pm_comment {
pub node: pm_list_node_t,
pub location: pm_location_t,
pub type_: pm_comment_type_t,
}Expand description
This is a node in the linked list of comments that we’ve found while parsing.
@extends pm_list_node_t
Fields§
§node: pm_list_node_tThe embedded base node.
location: pm_location_tThe location of the comment in the source.
type_: pm_comment_type_tThe type of comment that we’ve found.
Trait Implementations§
source§impl Clone for pm_comment
impl Clone for pm_comment
source§fn clone(&self) -> pm_comment
fn clone(&self) -> pm_comment
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 pm_comment
impl Debug for pm_comment
source§impl Default for pm_comment
impl Default for pm_comment
impl Copy for pm_comment
Auto Trait Implementations§
impl RefUnwindSafe for pm_comment
impl !Send for pm_comment
impl !Sync for pm_comment
impl Unpin for pm_comment
impl UnwindSafe for pm_comment
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