pub struct Array(/* private fields */);
Implementations§
Source§impl Array
impl Array
pub fn len(&self) -> usize
pub fn bytes(&self) -> Bytes
pub fn to_vec(&self) -> Vec<u8> ⓘ
pub fn is_empty(&self) -> bool
pub fn is_null(&self) -> bool
pub fn from_bytes(input: Bytes) -> Self
pub fn from_slice(input: &[u8]) -> Self
pub unsafe fn from_raw(ptr: *mut u8, length: usize) -> Self
pub fn while_valid( input: &[u8], start: &mut usize, end: &usize, ) -> Result<(), RespError>
pub fn parse( input: &[u8], start: &mut usize, end: &usize, ) -> Result<Self, RespError>
Trait Implementations§
impl StructuralPartialEq for Array
Auto Trait Implementations§
impl !Freeze for Array
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
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