#[repr(C)]pub struct pm_token_t {
pub type_: pm_token_type_t,
pub start: *const u8,
pub end: *const u8,
}
Expand description
This struct represents a token in the Ruby source. We use it to track both type and location information.
Fields§
§type_: pm_token_type_t
The type of the token.
start: *const u8
A pointer to the start location of the token in the source.
end: *const u8
A pointer to the end location of the token in the source.
Trait Implementations§
Source§impl Clone for pm_token_t
impl Clone for pm_token_t
Source§fn clone(&self) -> pm_token_t
fn clone(&self) -> pm_token_t
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_token_t
impl Debug for pm_token_t
Source§impl Default for pm_token_t
impl Default for pm_token_t
impl Copy for pm_token_t
Auto Trait Implementations§
impl Freeze for pm_token_t
impl RefUnwindSafe for pm_token_t
impl !Send for pm_token_t
impl !Sync for pm_token_t
impl Unpin for pm_token_t
impl UnwindSafe for pm_token_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