Struct pikkr_annika::Pikkr[][src]

pub struct Pikkr<'a> { /* fields omitted */ }

JSON parser which picks up values directly without performing tokenization

Implementations

impl<'a> Pikkr<'a>[src]

pub fn new<S: ?Sized + AsRef<[u8]>>(
    query_strs: &[&'a S],
    train_num: usize
) -> Result<Pikkr<'a>>
[src]

Creates a JSON parser and returns it.

pub fn parse<'b, S: ?Sized + AsRef<[u8]>>(
    &mut self,
    rec: &'b S
) -> Result<Vec<Option<&'b [u8]>>>
[src]

Parses a JSON record and returns the result.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Pikkr<'a>[src]

impl<'a> Send for Pikkr<'a>[src]

impl<'a> !Sync for Pikkr<'a>[src]

impl<'a> Unpin for Pikkr<'a>[src]

impl<'a> UnwindSafe for Pikkr<'a>[src]

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.