#[repr(transparent)]
pub struct NonFixedWidthArray<T: Cast + ?Sized> { /* private fields */ }
Expand description

Type with same representation as GVariant “aX” type where X is any non-fixed size type

This is similar to a slice, but for non-fixed width types, and implements many of the same methods. Items can be retrieved by indexing or iterated over.

For fixed-width types a standard rust slice is used.

Implementations

Returns the number of elements in the array.

Returns true if the array has a length of 0.

Returns an iterator over the array.

Returns the first element of the array, or None if it is empty.

Returns the last element of the array, or None if it is empty.

Trait Implementations

Get a static reference to the default value for this type. Read more

Cast slice to type Self. Read more

Formats the value using the given formatter. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. 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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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