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_plain(self) -> Option<Vec<u8>>
pub fn into_plain(self) -> Option<Vec<u8>>
Converts CBytesShort into plain vector of bytes;
Trait Implementations§
Source§impl Clone for CBytesShort
impl Clone for CBytesShort
Source§fn clone(&self) -> CBytesShort
fn clone(&self) -> CBytesShort
Returns a duplicate 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 FromCursor for CBytesShort
impl FromCursor for CBytesShort
Source§fn 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 a [bytes]. It reads required number of bytes and returns a CBytes
Source§impl IntoBytes for CBytesShort
impl IntoBytes 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