pub struct StreamType { /* private fields */ }Expand description
A StreamType node (family.ungram rule StreamType).
Implementations§
Source§impl StreamType
impl StreamType
pub fn element_type(&self) -> Option<PathType>
pub fn lt_token(&self) -> Option<SyntaxToken>
pub fn string_token(&self) -> Option<SyntaxToken>
pub fn bytes_token(&self) -> Option<SyntaxToken>
pub fn gt_token(&self) -> Option<SyntaxToken>
Source§impl StreamType
impl StreamType
Sourcepub fn element_primitive(&self) -> Option<SyntaxToken>
pub fn element_primitive(&self) -> Option<SyntaxToken>
The raw string/bytes element keyword (ridl reference §12.2) —
the bare token child of the stream, present only when the element
is not a named type (StreamType::element_type).
Trait Implementations§
Source§impl AstNode for StreamType
impl AstNode for StreamType
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 StreamType
impl Clone for StreamType
Source§impl Debug for StreamType
impl Debug for StreamType
impl Eq for StreamType
Source§impl Hash for StreamType
impl Hash for StreamType
Source§impl PartialEq for StreamType
impl PartialEq for StreamType
impl StructuralPartialEq for StreamType
Auto Trait Implementations§
impl !RefUnwindSafe for StreamType
impl !Send for StreamType
impl !Sync for StreamType
impl !UnwindSafe for StreamType
impl Freeze for StreamType
impl Unpin for StreamType
impl UnsafeUnpin for StreamType
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