pub struct CStrArray<'a>(/* private fields */);
Expand description
A serialized representation of a C-style string array
This type represents an array of C-style strings, where each string is null-terminated.
To get an iterator over the strings, use the iter
method.
Implementations§
Trait Implementations§
Source§impl<'a> FromBytes<'a> for CStrArray<'a>
impl<'a> FromBytes<'a> for CStrArray<'a>
Source§fn from_bytes(buf: &mut &'a [u8]) -> Result<Self, FromBytesError>
fn from_bytes(buf: &mut &'a [u8]) -> Result<Self, FromBytesError>
Read the binary representation of a field and return the parsed representation Read more
Source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
Read the binary representation of a field from a buffer that may or may not exist Read more
impl<'a> Copy for CStrArray<'a>
Auto Trait Implementations§
impl<'a> Freeze for CStrArray<'a>
impl<'a> RefUnwindSafe for CStrArray<'a>
impl<'a> Send for CStrArray<'a>
impl<'a> Sync for CStrArray<'a>
impl<'a> Unpin for CStrArray<'a>
impl<'a> UnwindSafe for CStrArray<'a>
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