pub struct StringArray(/* private fields */);
Expand description
Holds a contiguous array of bytes where each individual string value is null-separated.
You can choose how to iterate over it by calling a corresponding iter_* function.
The Debug
impl has an alternative {:#?}
representation, which prints as a vec of strings.
Implementations§
Source§impl<'a> StringArray
impl<'a> StringArray
Sourcepub fn empty() -> StringArray
pub fn empty() -> StringArray
Create an empty StringArray
Sourcepub fn iter_str(&'a self) -> StringIter<'a> ⓘ
pub fn iter_str(&'a self) -> StringIter<'a> ⓘ
Return an iterator over &str
Sourcepub fn iter_cstr(&'a self) -> CStringIter<'a> ⓘ
pub fn iter_cstr(&'a self) -> CStringIter<'a> ⓘ
Return an iterator over &CStr
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for StringArray
impl Clone for StringArray
Source§fn clone(&self) -> StringArray
fn clone(&self) -> StringArray
Returns a duplicate 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 StringArray
impl Debug for StringArray
Source§impl From<StringArray> for Vec<String>
impl From<StringArray> for Vec<String>
Source§fn from(a: StringArray) -> Self
fn from(a: StringArray) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringArray
impl RefUnwindSafe for StringArray
impl Send for StringArray
impl Sync for StringArray
impl Unpin for StringArray
impl UnwindSafe for StringArray
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