Struct taos_query::util::InlineJson
source · [−]#[repr(C)]#[repr(packed(1))]pub struct InlineJson<T = u16> { /* private fields */ }Implementations
sourceimpl InlineJson<u8>
impl InlineJson<u8>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub fn as_ptr(&self) -> *const u8
pub const fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub const fn as_str(&self) -> &str
sourcepub fn as_json(&self) -> BorrowedValue<'_>
pub fn as_json(&self) -> BorrowedValue<'_>
Parse inline bytes to json value.
Panic
It will panic when the inner bytes is not valid to parse as json.
pub const fn len(&self) -> usize
sourceimpl InlineJson<u16>
impl InlineJson<u16>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub fn as_ptr(&self) -> *const u8
pub const fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub const fn as_str(&self) -> &str
sourcepub fn as_json(&self) -> BorrowedValue<'_>
pub fn as_json(&self) -> BorrowedValue<'_>
Parse inline bytes to json value.
Panic
It will panic when the inner bytes is not valid to parse as json.
pub const fn len(&self) -> usize
sourceimpl InlineJson<u32>
impl InlineJson<u32>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub fn as_ptr(&self) -> *const u8
pub const fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub const fn as_str(&self) -> &str
sourcepub fn as_json(&self) -> BorrowedValue<'_>
pub fn as_json(&self) -> BorrowedValue<'_>
Parse inline bytes to json value.
Panic
It will panic when the inner bytes is not valid to parse as json.
pub const fn len(&self) -> usize
sourceimpl InlineJson<u64>
impl InlineJson<u64>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub fn as_ptr(&self) -> *const u8
pub const fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub const fn as_str(&self) -> &str
sourcepub fn as_json(&self) -> BorrowedValue<'_>
pub fn as_json(&self) -> BorrowedValue<'_>
Parse inline bytes to json value.
Panic
It will panic when the inner bytes is not valid to parse as json.
pub const fn len(&self) -> usize
sourceimpl InlineJson<usize>
impl InlineJson<usize>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub fn as_ptr(&self) -> *const u8
pub const fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub const fn as_str(&self) -> &str
sourcepub fn as_json(&self) -> BorrowedValue<'_>
pub fn as_json(&self) -> BorrowedValue<'_>
Parse inline bytes to json value.
Panic
It will panic when the inner bytes is not valid to parse as json.
pub const fn len(&self) -> usize
Trait Implementations
sourceimpl AsRef<str> for InlineJson<u16>
impl AsRef<str> for InlineJson<u16>
sourceimpl AsRef<str> for InlineJson<u32>
impl AsRef<str> for InlineJson<u32>
sourceimpl AsRef<str> for InlineJson<u64>
impl AsRef<str> for InlineJson<u64>
sourceimpl AsRef<str> for InlineJson<u8>
impl AsRef<str> for InlineJson<u8>
sourceimpl AsRef<str> for InlineJson<usize>
impl AsRef<str> for InlineJson<usize>
sourceimpl Debug for InlineJson<u16>
impl Debug for InlineJson<u16>
sourceimpl Debug for InlineJson<u32>
impl Debug for InlineJson<u32>
sourceimpl Debug for InlineJson<u64>
impl Debug for InlineJson<u64>
sourceimpl Debug for InlineJson<u8>
impl Debug for InlineJson<u8>
sourceimpl Debug for InlineJson<usize>
impl Debug for InlineJson<usize>
sourceimpl Display for InlineJson<u16>
impl Display for InlineJson<u16>
sourceimpl Display for InlineJson<u32>
impl Display for InlineJson<u32>
sourceimpl Display for InlineJson<u64>
impl Display for InlineJson<u64>
sourceimpl Display for InlineJson<u8>
impl Display for InlineJson<u8>
sourceimpl Display for InlineJson<usize>
impl Display for InlineJson<usize>
sourceimpl Inlinable for InlineJson<u16>
impl Inlinable for InlineJson<u16>
sourcefn 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.
sourcefn read_inlined<R: Read>(_: &mut R) -> Result<Self>
fn read_inlined<R: Read>(_: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn 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
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
sourceimpl Inlinable for InlineJson<u32>
impl Inlinable for InlineJson<u32>
sourcefn 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.
sourcefn read_inlined<R: Read>(_: &mut R) -> Result<Self>
fn read_inlined<R: Read>(_: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn 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
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
sourceimpl Inlinable for InlineJson<u64>
impl Inlinable for InlineJson<u64>
sourcefn 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.
sourcefn read_inlined<R: Read>(_: &mut R) -> Result<Self>
fn read_inlined<R: Read>(_: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn 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
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
sourceimpl Inlinable for InlineJson<u8>
impl Inlinable for InlineJson<u8>
sourcefn 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.
sourcefn read_inlined<R: Read>(_: &mut R) -> Result<Self>
fn read_inlined<R: Read>(_: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn 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
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn printable_inlined(&self) -> String
fn printable_inlined(&self) -> String
Get inlined bytes as printable string, all the bytes will displayed with escaped ascii code.
sourceimpl Inlinable for InlineJson<usize>
impl Inlinable for InlineJson<usize>
sourcefn 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.
sourcefn read_inlined<R: Read>(_: &mut R) -> Result<Self>
fn read_inlined<R: Read>(_: &mut R) -> Result<Self>
Read inlined bytes into object.
fn read_optional_inlined<R: Read>(reader: &mut R) -> Result<Option<Self>> where
Self: Sized,
sourcefn 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
sourcefn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inlined(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get inlined bytes as vector.
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more