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 for CBytesShort
impl PartialEq 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 for CBytesShort
impl PartialOrd 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 moresource§impl Serialize for CBytesShort
impl Serialize for CBytesShort
impl Eq for CBytesShort
impl StructuralPartialEq for CBytesShort
Auto Trait Implementations§
impl Freeze for CBytesShort
impl RefUnwindSafe for CBytesShort
impl Send for CBytesShort
impl Sync for CBytesShort
impl Unpin for CBytesShort
impl UnwindSafe for CBytesShort
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more