pub struct PrimitiveType { /* private fields */ }Expand description
A PrimitiveType node (family.ungram rule PrimitiveType).
Implementations§
Source§impl PrimitiveType
impl PrimitiveType
pub fn constraint(&self) -> Option<Constraint>
pub fn boolean_token(&self) -> Option<SyntaxToken>
pub fn integer_token(&self) -> Option<SyntaxToken>
pub fn float_token(&self) -> Option<SyntaxToken>
pub fn string_token(&self) -> Option<SyntaxToken>
pub fn bytes_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for PrimitiveType
impl AstNode for PrimitiveType
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§impl Debug for PrimitiveType
impl Debug for PrimitiveType
impl Eq for PrimitiveType
Source§impl Hash for PrimitiveType
impl Hash for PrimitiveType
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl !RefUnwindSafe for PrimitiveType
impl !Send for PrimitiveType
impl !Sync for PrimitiveType
impl !UnwindSafe for PrimitiveType
impl Freeze for PrimitiveType
impl Unpin for PrimitiveType
impl UnsafeUnpin for PrimitiveType
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