[−][src]Struct sixtyfps::VecModel
A model backed by an SharedArray
Implementations
impl<T> VecModel<T> where
T: 'static,
[src]
T: 'static,
pub fn from_slice(slice: &[T]) -> Option<Rc<dyn Model<Data = T> + 'static>> where
T: Clone,
[src]
T: Clone,
Allocate a new model from a slice
pub fn push(&self, value: T)
[src]
Add a row at the end of the model
pub fn remove(&self, index: usize)
[src]
Remove the row at the given index from the model
Trait Implementations
impl<T> Default for VecModel<T> where
T: Default,
[src]
T: Default,
impl<T> From<Vec<T>> for VecModel<T>
[src]
impl<T> Model for VecModel<T> where
T: Clone,
[src]
T: Clone,
Auto Trait Implementations
impl<T> !RefUnwindSafe for VecModel<T>
impl<T> !Send for VecModel<T>
impl<T> !Sync for VecModel<T>
impl<T> Unpin for VecModel<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for VecModel<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,