Struct SliceRead
pub struct SliceRead<'a> { /* private fields */ }
JSON input source that reads from a slice of bytes.
Implementations
impl<'a> SliceRead<'a>
fn new(slice: &'a [u8]) -> SelfCreate a JSON input source to read from a slice of bytes.
Trait Implementations
impl<'a> Read<'a> for SliceRead<'a>
Auto Trait Implementations
impl<'a> Freeze for SliceRead<'a>
impl<'a> RefUnwindSafe for SliceRead<'a>
impl<'a> Send for SliceRead<'a>
impl<'a> Sync for SliceRead<'a>
impl<'a> Unpin for SliceRead<'a>
impl<'a> UnsafeUnpin for SliceRead<'a>
impl<'a> UnwindSafe for SliceRead<'a>
Blanket Implementations
impl<T> Any for SliceRead<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SliceRead<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SliceRead<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SliceRead<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for SliceRead<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SliceRead<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SliceRead<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>