[][src]Struct cdrs_tokio::types::CString

pub struct CString { /* fields omitted */ }

Implementations

impl CString[src]

pub fn new(string: String) -> CString[src]

pub fn as_str<'a>(&'a self) -> &'a str[src]

Converts internal value into pointer of str.

pub fn into_plain(self) -> String[src]

Converts internal value into a plain String.

pub fn as_plain(&self) -> String[src]

Represents internal value as a String.

Trait Implementations

impl Clone for CString[src]

impl Debug for CString[src]

impl FromCursor for CString[src]

fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CString>[src]

from_cursor gets Cursor who's position is set such that it should be a start of a [string]. It reads required number of bytes and returns a String

impl IntoBytes for CString[src]

fn into_cbytes(&self) -> Vec<u8>[src]

Converts into Cassandra byte representation of [string]

Auto Trait Implementations

impl RefUnwindSafe for CString

impl Send for CString

impl Sync for CString

impl Unpin for CString

impl UnwindSafe for CString

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.