pub struct MatchExt { /* private fields */ }Expand description
A match with start and end positions.
Implementations§
Source§impl MatchExt
impl MatchExt
Sourcepub fn token_type(&self) -> usize
pub fn token_type(&self) -> usize
Get the token type of the match.
Sourcepub fn start_position(&self) -> Position
pub fn start_position(&self) -> Position
Get the start position of the match.
Sourcepub fn end_position(&self) -> Position
pub fn end_position(&self) -> Position
Get the end position of the match.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchExt
impl<'de> Deserialize<'de> for MatchExt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for MatchExt
impl Eq for MatchExt
impl StructuralPartialEq for MatchExt
Auto Trait Implementations§
impl Freeze for MatchExt
impl RefUnwindSafe for MatchExt
impl Send for MatchExt
impl Sync for MatchExt
impl Unpin for MatchExt
impl UnwindSafe for MatchExt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)