Struct pikkr_annika::Pikkr [−][src]
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]
query_strs: &[&'a S],
train_num: usize
) -> Result<Pikkr<'a>>
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]
&mut self,
rec: &'b S
) -> Result<Vec<Option<&'b [u8]>>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,