pub struct Cell {
pub content: PackedContent,
pub semicolon: Option<_Scl>,
pub eoc: EOC,
pub leading_trivia: LeadingTrivia,
}Expand description
Struct generated by strutuct! for Cell.
Fields§
§content: PackedContentField Cell::content generated by strutuct!.
semicolon: Option<_Scl>Field Cell::semicolon generated by strutuct!.
eoc: EOCField Cell::eoc generated by strutuct!.
leading_trivia: LeadingTriviaField Cell::leading_trivia generated by strutuct!.
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn new(content: PackedContent, semicolon: Option<_Scl>, eoc: EOC) -> Self
pub fn new(content: PackedContent, semicolon: Option<_Scl>, eoc: EOC) -> Self
Creates this node from its typed children.
Sourcepub fn comments(&self) -> CommentTrivia
pub fn comments(&self) -> CommentTrivia
Collects the comments within this node from the
trivia of its tokens. Complete-line -- blocks
leading the first token are outer comments.
Trait Implementations§
Source§impl Lex for Cell
impl Lex for Cell
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for Cellwhere
N: ExternalCstNode,
impl<N> Migrate<N> for Cellwhere
N: ExternalCstNode,
Source§impl PrettyTree for Cell
impl PrettyTree for Cell
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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