Struct git2::string_array::StringArray [−][src]
pub struct StringArray { /* fields omitted */ }
Expand description
A string array structure used by libgit2
Some apis return arrays of strings which originate from libgit2. This
wrapper type behaves a little like Vec<&str>
but does so without copying
the underlying strings until necessary.
Implementations
impl StringArray
[src]
impl StringArray
[src]pub fn get(&self, i: usize) -> Option<&str>
[src]
pub fn get(&self, i: usize) -> Option<&str>
[src]Returns None if the i’th string is not utf8 or if i is out of bounds.
pub fn iter(&self) -> Iter<'_>ⓘ
[src]
pub fn iter(&self) -> Iter<'_>ⓘ
[src]Returns an iterator over the strings contained within this array.
The iterator yields Option<&str>
as it is unknown whether the contents
are utf-8 or not.
pub fn iter_bytes(&self) -> IterBytes<'_>ⓘ
[src]
pub fn iter_bytes(&self) -> IterBytes<'_>ⓘ
[src]Returns an iterator over the strings contained within this array, yielding byte slices.
Trait Implementations
impl Drop for StringArray
[src]
impl Drop for StringArray
[src]