[][src]Struct mysqldump_mutator::Parser

pub struct Parser<'a, R: BufRead, H: FnMut(&SQLContextType, Token) -> Token, CH: FnMut(&[Token])> { /* fields omitted */ }

SQL Parser

Methods

impl<'a, R: BufRead, H: FnMut(&SQLContextType, Token) -> Token, CH: FnMut(&[Token])> Parser<'a, R, H, CH>[src]

pub fn parse_mysqldump(
    sql: R,
    handler: H,
    commit_handler: CH
) -> Result<(), ParserError>
[src]

Parse a SQL statement. Calls handler for each row definition and commit_handler each time the parser finalizes parsing and mutating some set of tokens.

Auto Trait Implementations

impl<'a, R, H, CH> !RefUnwindSafe for Parser<'a, R, H, CH>

impl<'a, R, H, CH> Send for Parser<'a, R, H, CH> where
    CH: Send,
    H: Send,
    R: Send

impl<'a, R, H, CH> Sync for Parser<'a, R, H, CH> where
    CH: Sync,
    H: Sync,
    R: Sync

impl<'a, R, H, CH> Unpin for Parser<'a, R, H, CH> where
    CH: Unpin,
    H: Unpin

impl<'a, R, H, CH> !UnwindSafe for Parser<'a, R, H, CH>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.