pub struct ModuleTokenRange {
pub start: usize,
pub end: usize,
}Expand description
Byte range for a standalone module-token match in a source line.
Fields§
§start: usizeInclusive byte start offset in the scanned line.
end: usizeExclusive byte end offset in the scanned line.
Trait Implementations§
Source§impl Clone for ModuleTokenRange
impl Clone for ModuleTokenRange
Source§fn clone(&self) -> ModuleTokenRange
fn clone(&self) -> ModuleTokenRange
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 ModuleTokenRange
impl Debug for ModuleTokenRange
Source§impl PartialEq for ModuleTokenRange
impl PartialEq for ModuleTokenRange
impl Copy for ModuleTokenRange
impl Eq for ModuleTokenRange
impl StructuralPartialEq for ModuleTokenRange
Auto Trait Implementations§
impl Freeze for ModuleTokenRange
impl RefUnwindSafe for ModuleTokenRange
impl Send for ModuleTokenRange
impl Sync for ModuleTokenRange
impl Unpin for ModuleTokenRange
impl UnsafeUnpin for ModuleTokenRange
impl UnwindSafe for ModuleTokenRange
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