Struct sixtyfps::VecModel[]

pub struct VecModel<T> { /* fields omitted */ }
Expand description

A model backed by a SharedVector

Implementations

Allocate a new model from a slice

Add a row at the end of the model

Remove the row at the given index from the model

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

The model data: A model is a set of row and each row has this data

The amount of row in the model

Returns the data for a particular row. This function should be called with row < row_count().

Sets the data for a particular row. This function should be called with row < row_count(). If the model cannot support data changes, then it is ok to do nothing (default implementation). If the model can update the data, it should also call row_changed on its internal ModelNotify. Read more

Should forward to the internal ModelNotify::attach

Returns an iterator visiting all elements of the model.

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.