Struct cassandra_protocol::types::CBytes
source · pub struct CBytes { /* private fields */ }Expand description
The structure that represents Cassandra byte type.
Implementations§
source§impl CBytes
impl CBytes
pub fn new(bytes: Vec<u8>) -> CBytes
sourcepub fn into_bytes(self) -> Option<Vec<u8>>
pub fn into_bytes(self) -> Option<Vec<u8>>
Converts CBytes into a plain array of bytes
pub fn as_slice(&self) -> Option<&[u8]>
pub fn is_null_or_empty(&self) -> bool
pub fn into_plain(self) -> Option<Vec<u8>>
👎Deprecated: Use into_bytes().
Trait Implementations§
source§impl FromCursor for CBytes
impl FromCursor for CBytes
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> CDRSResult<CBytes>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> CDRSResult<CBytes>
Tries to parse Self from a cursor of bytes.
source§impl Ord for CBytes
impl Ord for CBytes
source§impl PartialEq<CBytes> for CBytes
impl PartialEq<CBytes> for CBytes
source§impl PartialOrd<CBytes> for CBytes
impl PartialOrd<CBytes> for CBytes
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