Struct cdrs::types::CString
[−]
[src]
pub struct CString { /* fields omitted */ }
Methods
impl CString
[src]
fn new(string: String) -> CString
fn as_str<'a>(&'a self) -> &'a str
Converts internal value into pointer of str
.
fn into_plain(self) -> String
Converts internal value into a plain String
.
fn as_plain(&self) -> String
Represents internal value as a String
.
Trait Implementations
impl Debug for CString
[src]
impl Clone for CString
[src]
fn clone(&self) -> CString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IntoBytes for CString
[src]
fn into_cbytes(&self) -> Vec<u8>
Converts into Cassandra byte representation of [string]
impl FromCursor for CString
[src]
fn from_cursor(cursor: &mut Cursor<Vec<u8>>) -> CString
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