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>>
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 more
sourceimpl 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]>) -> 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 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
sourceimpl PartialEq<CBytesShort> for CBytesShort
impl PartialEq<CBytesShort> for CBytesShort
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CBytesShort) -> bool
fn ne(&self, other: &CBytesShort) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more