pub struct StringArray { /* private fields */ }
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

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.

Trait Implementations

Executes the destructor for this type. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.