Fields
inner: &'a ParenExpr
expr: Expr<'a>
Implementations
Trait Implementations
sourceimpl<'a> CastableNode<'a> for ParenExpr<'a>
impl<'a> CastableNode<'a> for ParenExpr<'a>
sourceimpl<'a> NodeTrait<'a> for ParenExpr<'a>
impl<'a> NodeTrait<'a> for ParenExpr<'a>
fn parent(&self) -> Option<Node<'a>>
fn children(&self) -> Vec<Node<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn as_node(&self) -> Node<'a>
fn kind(&self) -> NodeKind
fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
fn start_line(&self) -> usize
fn end_line(&self) -> usize
fn start_column(&self) -> usize
fn end_column(&self) -> usize
fn char_width(&self) -> usize
fn child_index(&self) -> usize
fn previous_sibling(&self) -> Option<Node<'a>>
sourcefn previous_siblings(&self) -> Vec<Node<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn previous_siblings(&self) -> Vec<Node<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Gets the previous siblings in the order they appear in the file.
sourcefn next_sibling(&self) -> Option<Node<'a>>
fn next_sibling(&self) -> Option<Node<'a>>
Gets the next siblings in the order they appear in the file.
fn next_siblings(&self) -> Vec<Node<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn tokens(&self) -> &'a [TokenAndSpan]
fn children_with_tokens(&self) -> Vec<NodeOrToken<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn children_with_tokens_fast(
&self,
program: &dyn RootNode<'a>
) -> Vec<NodeOrToken<'a>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
sourcefn module(&self) -> &Module<'a>
fn module(&self) -> &Module<'a>
Gets the root node if the view was created from a Module; otherwise panics.
sourcefn script(&self) -> &Script<'a>
fn script(&self) -> &Script<'a>
Gets the root node if the view was created from a Script; otherwise panics.
fn text(&self) -> &'a str
fn previous_token(&self) -> Option<&'a TokenAndSpan>
fn next_token(&self) -> Option<&'a TokenAndSpan>
sourcefn previous_tokens(&self) -> &'a [TokenAndSpan]
fn previous_tokens(&self) -> &'a [TokenAndSpan]
Gets the previous tokens in the order they appear in the file.
sourcefn next_tokens(&self) -> &'a [TokenAndSpan]
fn next_tokens(&self) -> &'a [TokenAndSpan]
Gets the next tokens in the order they appear in the file.
sourceimpl<'a> SourceRanged for ParenExpr<'a>
impl<'a> SourceRanged for ParenExpr<'a>
fn start(&self) -> SourcePos
fn end(&self) -> SourcePos
fn range(&self) -> SourceRange<SourcePos>
fn byte_width(&self) -> usize
fn start_line_fast(&self, source: &dyn SourceTextInfoProvider<'_>) -> usize
fn end_line_fast(&self, source: &dyn SourceTextInfoProvider<'_>) -> usize
fn start_column_fast(&self, source: &dyn SourceTextInfoProvider<'_>) -> usize
fn end_column_fast(&self, source: &dyn SourceTextInfoProvider<'_>) -> usize
fn column_at_pos(
&self,
source: &dyn SourceTextInfoProvider<'_>,
pos: SourcePos
) -> usize
fn char_width_fast(&self, source: &dyn SourceTextInfoProvider<'_>) -> usize
fn text_fast<'a>(&self, source: &dyn SourceTextInfoProvider<'a>) -> &'a str
fn tokens_fast<'a>(&self, program: &dyn RootNode<'a>) -> &'a [TokenAndSpan]
fn leading_comments_fast<'a>(
&self,
program: &dyn RootNode<'a>
) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn trailing_comments_fast<'a>(
&self,
program: &dyn RootNode<'a>
) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn previous_token_fast<'a>(
&self,
program: &dyn RootNode<'a>
) -> Option<&'a TokenAndSpan>
fn next_token_fast<'a>(
&self,
program: &dyn RootNode<'a>
) -> Option<&'a TokenAndSpan>
fn previous_tokens_fast<'a>(
&self,
program: &dyn RootNode<'a>
) -> &'a [TokenAndSpan]
fn next_tokens_fast<'a>(&self, program: &dyn RootNode<'a>) -> &'a [TokenAndSpan]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParenExpr<'a>
impl<'a> Send for ParenExpr<'a>
impl<'a> Sync for ParenExpr<'a>
impl<'a> Unpin for ParenExpr<'a>
impl<'a> UnwindSafe for ParenExpr<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more