Struct hapi_rs::stringhandle::StringArray
source · 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
sourceimpl<'a> StringArray
impl<'a> StringArray
sourcepub fn iter_str(&'a self) -> StringIter<'a>ⓘNotable traits for StringIter<'a>impl<'a> Iterator for StringIter<'a> type Item = &'a str;
pub fn iter_str(&'a self) -> StringIter<'a>ⓘNotable traits for StringIter<'a>impl<'a> Iterator for StringIter<'a> type Item = &'a str;
Return an iterator over &str
sourcepub fn iter_cstr(&'a self) -> CStringIter<'a>ⓘNotable traits for CStringIter<'a>impl<'a> Iterator for CStringIter<'a> type Item = &'a CStr;
pub fn iter_cstr(&'a self) -> CStringIter<'a>ⓘNotable traits for CStringIter<'a>impl<'a> Iterator for CStringIter<'a> type Item = &'a CStr;
Return an iterator over &CStr
pub fn is_empty(&self) -> bool
Trait Implementations
sourceimpl Debug for StringArray
impl Debug for StringArray
sourceimpl IntoIterator for StringArray
impl IntoIterator for StringArray
Auto Trait Implementations
impl RefUnwindSafe for StringArray
impl Send for StringArray
impl Sync for StringArray
impl Unpin for StringArray
impl UnwindSafe for StringArray
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more