pub struct Integer(/* private fields */);
Implementations§
Trait Implementations§
source§impl AstToken for Integer
impl AstToken for Integer
fn can_cast(kind: SyntaxKind) -> bool
source§fn cast(from: SyntaxToken) -> Option<Self>
fn cast(from: SyntaxToken) -> Option<Self>
Cast an untyped token into this strongly-typed token. This will return
None if the type was not correct.
fn syntax(&self) -> &SyntaxToken
source§impl PartialEq for Integer
impl PartialEq for Integer
impl Eq for Integer
impl StructuralPartialEq for Integer
Auto Trait Implementations§
impl Freeze for Integer
impl !RefUnwindSafe for Integer
impl !Send for Integer
impl !Sync for Integer
impl Unpin for Integer
impl !UnwindSafe for Integer
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)