pub struct ParsedScript {
pub statements: Vec<Statement>,
pub tokens: Vec<Token>,
pub roles: Vec<TokenRole>,
pub spans: Vec<Span>,
}Expand description
Statements with the tokens they were read from.
Fields§
§statements: Vec<Statement>§tokens: Vec<Token>The significant tokens.
roles: Vec<TokenRole>The role of each significant token.
spans: Vec<Span>The source span of each statement (without its semicolon).
Trait Implementations§
Source§impl Clone for ParsedScript
impl Clone for ParsedScript
Auto Trait Implementations§
impl Forget for ParsedScript
impl Freeze for ParsedScriptwhere
*const u8 is !null: Freeze,
PhantomData<Statement>: Freeze,
PhantomData<Token>: Freeze,
PhantomData<TokenRole>: Freeze,
PhantomData<Span>: Freeze,
impl Move for ParsedScript
impl RefUnwindSafe for ParsedScript
impl Send for ParsedScriptwhere
RawVecInner: Send,
BoxRaw<Query>: Send,
BoxRaw<CreateTable>: Send,
BoxRaw<CreateView>: Send,
BoxRaw<CreateFunction>: Send,
BoxRaw<CreateTableFunction>: Send,
BoxRaw<CreateProcedure>: Send,
BoxRaw<CreateSchema>: Send,
BoxRaw<Insert>: Send,
BoxRaw<Update>: Send,
BoxRaw<Delete>: Send,
BoxRaw<Merge>: Send,
BoxRaw<Drop>: Send,
BoxRaw<AlterTable>: Send,
BoxRaw<DataType>: Send,
BoxRaw<Expr>: Send,
BoxRaw<Function>: Send,
BoxRaw<ExportData>: Send,
BoxRaw<LoadData>: Send,
impl Sync for ParsedScriptwhere
RawVecInner: Sync,
BoxRaw<Query>: Sync,
BoxRaw<CreateTable>: Sync,
BoxRaw<CreateView>: Sync,
BoxRaw<CreateFunction>: Sync,
BoxRaw<CreateTableFunction>: Sync,
BoxRaw<CreateProcedure>: Sync,
BoxRaw<CreateSchema>: Sync,
BoxRaw<Insert>: Sync,
BoxRaw<Update>: Sync,
BoxRaw<Delete>: Sync,
BoxRaw<Merge>: Sync,
BoxRaw<Drop>: Sync,
BoxRaw<AlterTable>: Sync,
BoxRaw<DataType>: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<Function>: Sync,
BoxRaw<ExportData>: Sync,
BoxRaw<LoadData>: Sync,
impl Unpin for ParsedScriptwhere
*const u8 is !null: Unpin,
Box<Query>: Unpin,
Box<CreateTable>: Unpin,
Box<CreateView>: Unpin,
Box<CreateFunction>: Unpin,
Box<CreateTableFunction>: Unpin,
Box<CreateProcedure>: Unpin,
Box<CreateSchema>: Unpin,
Box<Insert>: Unpin,
Box<Update>: Unpin,
Box<Delete>: Unpin,
Box<Merge>: Unpin,
Box<Drop>: Unpin,
Box<AlterTable>: Unpin,
Box<DataType>: Unpin,
Box<Expr>: Unpin,
Box<Function>: Unpin,
Box<ExportData>: Unpin,
Box<LoadData>: Unpin,
impl UnsafeUnpin for ParsedScriptwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Statement>: UnsafeUnpin,
PhantomData<Token>: UnsafeUnpin,
PhantomData<TokenRole>: UnsafeUnpin,
PhantomData<Span>: UnsafeUnpin,
impl UnwindSafe for ParsedScriptwhere
RawVecInner: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<CreateTable>: UnwindSafe,
BoxRaw<CreateView>: UnwindSafe,
BoxRaw<CreateFunction>: UnwindSafe,
BoxRaw<CreateTableFunction>: UnwindSafe,
BoxRaw<CreateProcedure>: UnwindSafe,
BoxRaw<CreateSchema>: UnwindSafe,
BoxRaw<Insert>: UnwindSafe,
BoxRaw<Update>: UnwindSafe,
BoxRaw<Delete>: UnwindSafe,
BoxRaw<Merge>: UnwindSafe,
BoxRaw<Drop>: UnwindSafe,
BoxRaw<AlterTable>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<ExportData>: UnwindSafe,
BoxRaw<LoadData>: UnwindSafe,
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