[−][src]Struct cassandra_proto::types::CBytes
The structure that represents Cassandra byte type.
Methods
impl CBytes[src]
pub fn new(bytes: Vec<u8>) -> CBytes[src]
pub fn new_empty() -> CBytes[src]
Creates Cassandra bytes that represent empty or null value
pub fn into_plain(self) -> Option<Vec<u8>>[src]
Converts CBytes into a plain array of bytes
pub fn as_plain(&self) -> Option<Vec<u8>>[src]
pub fn as_slice(&self) -> Option<&[u8]>[src]
pub fn is_empty(&self) -> bool[src]
Trait Implementations
impl Clone for CBytes[src]
impl Debug for CBytes[src]
impl Eq for CBytes[src]
impl FromCursor for CBytes[src]
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> CDRSResult<CBytes>[src]
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
impl Hash for CBytes[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl IntoBytes for CBytes[src]
fn into_cbytes(&self) -> Vec<u8>[src]
impl PartialEq<CBytes> for CBytes[src]
impl StructuralEq for CBytes[src]
impl StructuralPartialEq for CBytes[src]
Auto Trait Implementations
impl RefUnwindSafe for CBytes
impl Send for CBytes
impl Sync for CBytes
impl Unpin for CBytes
impl UnwindSafe for CBytes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,