Struct cassandra_protocol::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_bytes(self) -> Option<Vec<u8>>
pub fn into_bytes(self) -> Option<Vec<u8>>
Converts CBytesShort
into plain vector of bytes
pub fn serialized_len(&self) -> usize
pub fn into_plain(self) -> Option<Vec<u8>>
👎Deprecated: Use into_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 Default for CBytesShort
impl Default for CBytesShort
source§fn default() -> CBytesShort
fn default() -> CBytesShort
Returns the “default value” for a type. Read more
source§impl FromCursor for CBytesShort
impl FromCursor for CBytesShort
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> CDRSResult<CBytesShort>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> CDRSResult<CBytesShort>
from_cursor gets Cursor who’s position is set such that it should be a start of bytes. It reads required number of bytes and returns a CBytes
source§impl Hash for CBytesShort
impl Hash for CBytesShort
source§impl Ord for CBytesShort
impl Ord for CBytesShort
source§fn cmp(&self, other: &CBytesShort) -> Ordering
fn cmp(&self, other: &CBytesShort) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CBytesShort> for CBytesShort
impl PartialEq<CBytesShort> for CBytesShort
source§fn eq(&self, other: &CBytesShort) -> bool
fn eq(&self, other: &CBytesShort) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CBytesShort> for CBytesShort
impl PartialOrd<CBytesShort> for CBytesShort
source§fn partial_cmp(&self, other: &CBytesShort) -> Option<Ordering>
fn partial_cmp(&self, other: &CBytesShort) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more