Struct cdrs::types::CBytes
[−]
[src]
pub struct CBytes { /* fields omitted */ }
The structure that represents Cassandra byte type.
Methods
impl CBytes
[src]
fn new(bytes: Vec<u8>) -> CBytes
fn into_plain(self) -> Option<Vec<u8>>
Converts CBytes
into a plain array of bytes
fn as_plain(&self) -> Option<Vec<u8>>
fn as_slice(&self) -> Option<&[u8]>
fn is_empty(&self) -> bool
Trait Implementations
impl Debug for CBytes
[src]
impl Clone for CBytes
[src]
fn clone(&self) -> CBytes
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 Hash for CBytes
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for CBytes
[src]
fn eq(&self, __arg_0: &CBytes) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CBytes) -> bool
This method tests for !=
.
impl Eq for CBytes
[src]
impl FromCursor for CBytes
[src]
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CBytes>
from_cursor gets Cursor who's position is set such that it should be a start of a [bytes]. It reads required number of bytes and returns a CBytes
impl IntoBytes for CBytes
[src]
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.