#[repr(C)]pub struct pm_magic_comment_t {
pub node: pm_list_node_t,
pub key_start: *const u8,
pub value_start: *const u8,
pub key_length: u32,
pub value_length: u32,
}
Expand description
This is a node in the linked list of magic comments that we’ve found while parsing.
@extends pm_list_node_t
Fields§
§node: pm_list_node_t
The embedded base node.
key_start: *const u8
A pointer to the start of the key in the source.
value_start: *const u8
A pointer to the start of the value in the source.
key_length: u32
The length of the key in the source.
value_length: u32
The length of the value in the source.
Trait Implementations§
Source§impl Clone for pm_magic_comment_t
impl Clone for pm_magic_comment_t
Source§fn clone(&self) -> pm_magic_comment_t
fn clone(&self) -> pm_magic_comment_t
Returns a duplicate 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_magic_comment_t
impl Debug for pm_magic_comment_t
Source§impl Default for pm_magic_comment_t
impl Default for pm_magic_comment_t
impl Copy for pm_magic_comment_t
Auto Trait Implementations§
impl Freeze for pm_magic_comment_t
impl RefUnwindSafe for pm_magic_comment_t
impl !Send for pm_magic_comment_t
impl !Sync for pm_magic_comment_t
impl Unpin for pm_magic_comment_t
impl UnwindSafe for pm_magic_comment_t
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