Struct taos_query::util::InlineStr
source · [−]#[repr(C)]#[repr(packed(1))]pub struct InlineStr<T = u16> { /* private fields */ }Implementations
sourceimpl InlineStr<u8>
impl InlineStr<u8>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub const 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
pub const fn len(&self) -> usize
pub unsafe fn set_len(&mut self, len: usize)
sourceimpl InlineStr<u16>
impl InlineStr<u16>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub const 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
pub const fn len(&self) -> usize
pub unsafe fn set_len(&mut self, len: usize)
sourceimpl InlineStr<u32>
impl InlineStr<u32>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub const 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
pub const fn len(&self) -> usize
pub unsafe fn set_len(&mut self, len: usize)
sourceimpl InlineStr<u64>
impl InlineStr<u64>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub const 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
pub const fn len(&self) -> usize
pub unsafe fn set_len(&mut self, len: usize)
sourceimpl InlineStr<usize>
impl InlineStr<usize>
pub unsafe fn from_ptr<'a>(ptr: *const u8) -> &'a Self
pub const 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
pub const fn len(&self) -> usize
pub unsafe fn set_len(&mut self, len: usize)
Trait Implementations
sourceimpl AsyncInlinable for InlineStr<u16>
impl AsyncInlinable for InlineStr<u16>
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
sourcefn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl AsyncInlinable for InlineStr<u32>
impl AsyncInlinable for InlineStr<u32>
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
sourcefn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl AsyncInlinable for InlineStr<u64>
impl AsyncInlinable for InlineStr<u64>
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
sourcefn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl AsyncInlinable for InlineStr<u8>
impl AsyncInlinable for InlineStr<u8>
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
sourcefn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl AsyncInlinable for InlineStr<usize>
impl AsyncInlinable for InlineStr<usize>
sourcefn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn write_inlined<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Unpin + Send,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Write inlined bytes to a writer.
sourcefn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
fn read_inlined<'life0, 'async_trait, R>(
__arg0: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: 'async_trait,
Read inlined bytes into object.
fn read_optional_inlined<'life0, 'async_trait, R>(
reader: &'life0 mut R
) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'async_trait>> where
Self: Sized,
R: 'async_trait + AsyncRead + Send + Unpin,
'life0: 'async_trait,
Self: Send + 'async_trait,
sourcefn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn write_inlined_with<'life0, 'life1, 'async_trait, W>(
&'life0 self,
wtr: &'life1 mut W,
_opts: InlineOpts
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
W: 'async_trait + AsyncWrite + Send + Unpin,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Write inlined bytes with specific options
sourceimpl Inlinable for InlineStr<u16>
impl Inlinable for InlineStr<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 InlineStr<u32>
impl Inlinable for InlineStr<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 InlineStr<u64>
impl Inlinable for InlineStr<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 InlineStr<u8>
impl Inlinable for InlineStr<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 InlineStr<usize>
impl Inlinable for InlineStr<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 InlineStr<T> where
T: RefUnwindSafe,
impl<T> Send for InlineStr<T> where
T: Send,
impl<T> Sync for InlineStr<T> where
T: Sync,
impl<T> Unpin for InlineStr<T> where
T: Unpin,
impl<T> UnwindSafe for InlineStr<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