#[repr(C, packed(1))]pub struct InlineJson<T = u16> { /* private fields */ }
Implementations§
Source§impl InlineJson<u8>
impl InlineJson<u8>
Source§impl InlineJson<u16>
impl InlineJson<u16>
Source§impl InlineJson<u32>
impl InlineJson<u32>
Source§impl InlineJson<u64>
impl InlineJson<u64>
Trait Implementations§
Source§impl Debug for InlineJson<u16>
impl Debug for InlineJson<u16>
Source§impl Debug for InlineJson<u32>
impl Debug for InlineJson<u32>
Source§impl Debug for InlineJson<u64>
impl Debug for InlineJson<u64>
Source§impl Debug for InlineJson<u8>
impl Debug for InlineJson<u8>
Source§impl Debug for InlineJson<usize>
impl Debug for InlineJson<usize>
Source§impl Display for InlineJson<u16>
impl Display for InlineJson<u16>
Source§impl Display for InlineJson<u32>
impl Display for InlineJson<u32>
Source§impl Display for InlineJson<u64>
impl Display for InlineJson<u64>
Source§impl Display for InlineJson<u8>
impl Display for InlineJson<u8>
Source§impl Display for InlineJson<usize>
impl Display for InlineJson<usize>
Source§impl Inlinable for InlineJson<u16>
impl Inlinable for InlineJson<u16>
Source§fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>>where
Self: Sized,
Source§fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts,
) -> Result<usize>
fn write_inlined_with<W: Write>( &self, wtr: &mut W, _opts: InlineOpts, ) -> Result<usize>
Write inlined bytes with specific options
Source§fn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
Source§impl Inlinable for InlineJson<u32>
impl Inlinable for InlineJson<u32>
Source§fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>>where
Self: Sized,
Source§fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts,
) -> Result<usize>
fn write_inlined_with<W: Write>( &self, wtr: &mut W, _opts: InlineOpts, ) -> Result<usize>
Write inlined bytes with specific options
Source§fn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
Source§impl Inlinable for InlineJson<u64>
impl Inlinable for InlineJson<u64>
Source§fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>>where
Self: Sized,
Source§fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts,
) -> Result<usize>
fn write_inlined_with<W: Write>( &self, wtr: &mut W, _opts: InlineOpts, ) -> Result<usize>
Write inlined bytes with specific options
Source§fn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
Source§impl Inlinable for InlineJson<u8>
impl Inlinable for InlineJson<u8>
Source§fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>>where
Self: Sized,
Source§fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts,
) -> Result<usize>
fn write_inlined_with<W: Write>( &self, wtr: &mut W, _opts: InlineOpts, ) -> Result<usize>
Write inlined bytes with specific options
Source§fn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
Source§impl Inlinable for InlineJson<usize>
impl Inlinable for InlineJson<usize>
Source§fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
fn write_inlined<W: Write>(&self, wtr: &mut W) -> Result<usize>
Write inlined bytes to a writer.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>>where
Self: Sized,
Source§fn write_inlined_with<W: Write>(
&self,
wtr: &mut W,
_opts: InlineOpts,
) -> Result<usize>
fn write_inlined_with<W: Write>( &self, wtr: &mut W, _opts: InlineOpts, ) -> Result<usize>
Write inlined bytes with specific options
Source§fn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
Auto Trait Implementations§
impl<T> Freeze for InlineJson<T>where
T: Freeze,
impl<T> RefUnwindSafe for InlineJson<T>where
T: RefUnwindSafe,
impl<T> Send for InlineJson<T>where
T: Send,
impl<T> Sync for InlineJson<T>where
T: Sync,
impl<T> Unpin for InlineJson<T>where
T: Unpin,
impl<T> UnwindSafe for InlineJson<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more