#[repr(C)]pub struct pm_location_t {
pub start: u32,
pub length: u32,
}Expand description
This struct represents a slice in the source code, defined by an offset and a length. Note that we have confirmation that we can represent all locations within Ruby source files using 32-bit integers per:
https://bugs.ruby-lang.org/issues/20488#note-1Fields§
§start: u32The offset of the location from the start of the source.
length: u32The length of the location.
Trait Implementations§
Source§impl Clone for pm_location_t
impl Clone for pm_location_t
impl Copy for pm_location_t
Source§impl Debug for pm_location_t
impl Debug for pm_location_t
Auto Trait Implementations§
impl Freeze for pm_location_t
impl RefUnwindSafe for pm_location_t
impl Send for pm_location_t
impl Sync for pm_location_t
impl Unpin for pm_location_t
impl UnsafeUnpin for pm_location_t
impl UnwindSafe for pm_location_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