[−][src]Struct cassandra_proto::types::CString
Methods
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,