pub struct StringArray { /* fields omitted */ }
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.
Returns None if the i'th string is not utf8 or if i is out of bounds.
Returns None if i
is out of bounds.
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.
Returns an iterator over the strings contained within this array,
yielding byte slices.
Returns the number of strings in this array.
Return true
if this array is empty.
type Item = Option<&'a str>
The type of the elements being iterated over.
type IntoIter = Iter<'a>
Which kind of iterator are we turning this into?
Executes the destructor for this type. Read more
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static