Struct cassandra_protocol::types::CBytesShort
source · [−]pub struct CBytesShort { /* private fields */ }
Expand description
Cassandra short bytes
Implementations
sourceimpl 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
sourceimpl Clone for CBytesShort
impl Clone for CBytesShort
sourcefn clone(&self) -> CBytesShort
fn clone(&self) -> CBytesShort
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CBytesShort
impl Debug for CBytesShort
sourceimpl Default for CBytesShort
impl Default for CBytesShort
sourcefn default() -> CBytesShort
fn default() -> CBytesShort
Returns the “default value” for a type. Read more
sourceimpl FromCursor for CBytesShort
impl FromCursor for CBytesShort
sourcefn 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
sourceimpl Hash for CBytesShort
impl Hash for CBytesShort
sourceimpl Ord for CBytesShort
impl Ord for CBytesShort
sourcefn cmp(&self, other: &CBytesShort) -> Ordering
fn cmp(&self, other: &CBytesShort) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<CBytesShort> for CBytesShort
impl PartialEq<CBytesShort> for CBytesShort
sourcefn eq(&self, other: &CBytesShort) -> bool
fn eq(&self, other: &CBytesShort) -> bool
sourceimpl PartialOrd<CBytesShort> for CBytesShort
impl PartialOrd<CBytesShort> for CBytesShort
sourcefn partial_cmp(&self, other: &CBytesShort) -> Option<Ordering>
fn partial_cmp(&self, other: &CBytesShort) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for CBytesShort
impl Serialize for CBytesShort
impl Eq for CBytesShort
impl StructuralEq for CBytesShort
impl StructuralPartialEq for CBytesShort
Auto Trait Implementations
impl RefUnwindSafe for CBytesShort
impl Send for CBytesShort
impl Sync for CBytesShort
impl Unpin for CBytesShort
impl UnwindSafe for CBytesShort
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more