pub struct IntegerLit { /* private fields */ }Implementations§
Source§impl IntegerLit
impl IntegerLit
pub fn value_token(&self) -> Option<SyntaxToken>
pub fn value(&self) -> Option<i64>
Trait Implementations§
Source§impl AstNode for IntegerLit
impl AstNode for IntegerLit
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for IntegerLit
impl Clone for IntegerLit
Source§fn clone(&self) -> IntegerLit
fn clone(&self) -> IntegerLit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntegerLit
impl Debug for IntegerLit
Source§impl Display for IntegerLit
impl Display for IntegerLit
impl Eq for IntegerLit
Source§impl Hash for IntegerLit
impl Hash for IntegerLit
Source§impl PartialEq for IntegerLit
impl PartialEq for IntegerLit
impl StructuralPartialEq for IntegerLit
Auto Trait Implementations§
impl !RefUnwindSafe for IntegerLit
impl !Send for IntegerLit
impl !Sync for IntegerLit
impl !UnwindSafe for IntegerLit
impl Freeze for IntegerLit
impl Unpin for IntegerLit
impl UnsafeUnpin for IntegerLit
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