pub struct BytesOptVec(/* private fields */);
Implementations§
Source§impl BytesOptVec
impl BytesOptVec
pub fn total_size(&self) -> usize
pub fn item_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, idx: usize) -> Option<BytesOpt>
pub fn get_unchecked(&self, idx: usize) -> BytesOpt
pub fn as_reader<'r>(&'r self) -> BytesOptVecReader<'r>
Trait Implementations§
Source§impl Clone for BytesOptVec
impl Clone for BytesOptVec
Source§fn clone(&self) -> BytesOptVec
fn clone(&self) -> BytesOptVec
Returns a copy 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 BytesOptVec
impl Debug for BytesOptVec
Source§impl Default for BytesOptVec
impl Default for BytesOptVec
Source§fn default() -> BytesOptVec
fn default() -> BytesOptVec
Returns the “default value” for a type. Read more
Source§impl Display for BytesOptVec
impl Display for BytesOptVec
Source§impl Entity for BytesOptVec
impl Entity for BytesOptVec
const NAME: &'static str = "BytesOptVec"
type Builder = BytesOptVecBuilder
fn new_unchecked(data: Bytes) -> BytesOptVec
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<BytesOptVec, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<BytesOptVec, VerificationError>
fn new_builder() -> <BytesOptVec as Entity>::Builder
fn as_builder(self) -> <BytesOptVec as Entity>::Builder
Source§impl IntoIterator for BytesOptVec
impl IntoIterator for BytesOptVec
Source§type IntoIter = BytesOptVecIterator
type IntoIter = BytesOptVecIterator
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <BytesOptVec as IntoIterator>::IntoIter
fn into_iter(self) -> <BytesOptVec as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl !Freeze for BytesOptVec
impl RefUnwindSafe for BytesOptVec
impl Send for BytesOptVec
impl Sync for BytesOptVec
impl Unpin for BytesOptVec
impl UnwindSafe for BytesOptVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)