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
[src]
fn into_plain(self) -> Option<Vec<u8>>
[src]
Converts CBytes
into a plain array of bytes
fn as_plain(&self) -> Option<Vec<u8>>
[src]
fn as_slice(&self) -> Option<&[u8]>
[src]
fn is_empty(&self) -> bool
[src]
Trait Implementations
impl Debug for CBytes
[src]
impl Clone for CBytes
[src]
fn clone(&self) -> CBytes
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for CBytes
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
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
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CBytes) -> bool
[src]
This method tests for !=
.
impl Eq for CBytes
[src]
impl FromCursor for CBytes
[src]
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CBytes>
[src]
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>
[src]
It should convert a struct into an array of bytes.