pub struct BOF {
pub span: Span,
pub leading_trivia: LeadingTrivia,
pub trailing_trivia: TrailingTrivia,
}Expand description
Struct generated by strutuct! for BOF.
Fields§
§span: SpanField BOF::span generated by strutuct!.
leading_trivia: LeadingTriviaField BOF::leading_trivia generated by strutuct!.
trailing_trivia: TrailingTriviaField BOF::trailing_trivia generated by strutuct!.
Implementations§
Trait Implementations§
impl Eq for BOF
Source§impl Lex for BOF
impl Lex for BOF
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 BOFwhere
N: ExternalCstNode,
impl<N> Migrate<N> for BOFwhere
N: ExternalCstNode,
Source§impl PrettyTree for BOF
impl PrettyTree for BOF
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl Spanned for BOF
impl Spanned for BOF
impl StructuralPartialEq for BOF
Source§impl Terminal for BOF
impl Terminal for BOF
Source§fn leading_trivia(&self) -> &LeadingTrivia
fn leading_trivia(&self) -> &LeadingTrivia
Borrows the comments preceding this terminal.
Source§fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
fn leading_trivia_mut(&mut self) -> &mut LeadingTrivia
Mutably borrows the comments preceding this terminal.
Source§fn trailing_trivia(&self) -> &TrailingTrivia
fn trailing_trivia(&self) -> &TrailingTrivia
Borrows the comments following this terminal.
Source§fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
fn trailing_trivia_mut(&mut self) -> &mut TrailingTrivia
Mutably borrows the comments following this terminal.
Source§fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_leading_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments preceding this terminal.
Source§fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
fn set_trailing_trivia(&mut self, trivia: impl IntoIterator<Item = Trivia>)where
Self: Sized,
Replaces the comments and layout characters following this terminal.
Auto Trait Implementations§
impl Freeze for BOF
impl RefUnwindSafe for BOF
impl Send for BOF
impl Sync for BOF
impl Unpin for BOF
impl UnsafeUnpin for BOF
impl UnwindSafe for BOF
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