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