pub struct PhpToken { /* private fields */ }Expand description
Lightweight token metadata.
Implementations§
Source§impl PhpToken
impl PhpToken
pub const fn new( category: PhpTokenCategory, text: PhpTokenText, span: PhpTokenSpan, ) -> Self
pub const fn category(&self) -> PhpTokenCategory
pub const fn text(&self) -> &PhpTokenText
pub const fn span(&self) -> PhpTokenSpan
Trait Implementations§
impl Eq for PhpToken
impl StructuralPartialEq for PhpToken
Auto Trait Implementations§
impl Freeze for PhpToken
impl RefUnwindSafe for PhpToken
impl Send for PhpToken
impl Sync for PhpToken
impl Unpin for PhpToken
impl UnsafeUnpin for PhpToken
impl UnwindSafe for PhpToken
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