Struct simd_json::Deserializer[][src]

pub struct Deserializer<'de> { /* fields omitted */ }

Deserializer struct to deserialize a JSON

Implementations

impl<'de> Deserializer<'de>[src]

#[must_use]
pub fn into_tape(self) -> Vec<Node<'de>>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Extracts the tape from the Deserializer

pub fn from_slice(input: &'de mut [u8]) -> Result<Self>[src]

Creates a serializer from a mutable slice of bytes

Errors

Will return Err if s is invalid JSON.

pub fn from_slice_with_buffer(
    input: &'de mut [u8],
    string_buffer: &mut [u8]
) -> Result<Self>
[src]

Creates a serializer from a mutable slice of bytes using a temporary buffer for strings for them to be copied in and out if needed

Errors

Will return Err if s is invalid JSON.

pub fn from_slice_with_buffers(
    input: &'de mut [u8],
    input_buffer: &mut AlignedBuf,
    string_buffer: &mut [u8]
) -> Result<Self>
[src]

Creates a serializer from a mutable slice of bytes using a temporary buffer for strings for them to be copied in and out if needed

Errors

Will return Err if s is invalid JSON.

pub unsafe fn next_(&mut self) -> Node<'de>[src]

Same as next() but we pull out the check so we don’t need to stry every time. Use this only if you know the next element exists!

Safety

This function is not safe to use, it is meant for internal use where it’s know the tape isn’t finished.

Trait Implementations

impl<'a, 'de> Deserializer<'de> for &'a mut Deserializer<'de> where
    'de: 'a, 
[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

Auto Trait Implementations

impl<'de> RefUnwindSafe for Deserializer<'de>

impl<'de> Send for Deserializer<'de>

impl<'de> Sync for Deserializer<'de>

impl<'de> Unpin for Deserializer<'de>

impl<'de> UnwindSafe for Deserializer<'de>

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.