Struct Bytes
struct Bytes<'a> { ... }
An iterator over the bytes of a CStr, without the nul terminator.
This struct is created by the bytes method on CStr.
See its documentation for more.
Implementations
impl FusedIterator for Bytes<'_>
impl Iterator for Bytes<'_>
fn next(self: &mut Self) -> Option<u8>fn size_hint(self: &Self) -> (usize, Option<usize>)fn count(self: Self) -> usize
impl Send for Bytes<'_>
impl Sync for Bytes<'_>
impl<'a> Clone for Bytes<'a>
fn clone(self: &Self) -> Bytes<'a>
impl<'a> Debug for Bytes<'a>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<'a> Freeze for Bytes<'a>
impl<'a> RefUnwindSafe for Bytes<'a>
impl<'a> Unpin for Bytes<'a>
impl<'a> UnwindSafe for Bytes<'a>
impl<I> IntoIterator for Bytes<'a>
fn into_iter(self: Self) -> I
impl<T> Any for Bytes<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Bytes<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Bytes<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Bytes<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Bytes<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Bytes<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Bytes<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Bytes<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>