Struct cdrs::types::CBytesShort
source · pub struct CBytesShort { /* private fields */ }
Expand description
Cassandra short bytes
Implementations§
source§impl CBytesShort
impl CBytesShort
pub fn new(bytes: Vec<u8>) -> CBytesShort
sourcepub fn into_plain(self) -> Option<Vec<u8>>
pub fn into_plain(self) -> Option<Vec<u8>>
Converts CBytesShort
into plain vector of bytes;
Trait Implementations§
source§impl Clone for CBytesShort
impl Clone for CBytesShort
source§fn clone(&self) -> CBytesShort
fn clone(&self) -> CBytesShort
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CBytesShort
impl Debug for CBytesShort
source§impl FromCursor for CBytesShort
impl FromCursor for CBytesShort
source§fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CBytesShort>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CBytesShort>
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
source§impl IntoBytes for CBytesShort
impl IntoBytes for CBytesShort
source§fn into_cbytes(&self) -> Vec<u8>
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.