Skip to main content

TrySetExt

Trait TrySetExt 

Source
pub trait TrySetExt<T> {
    // Required method
    fn try_set(&mut self, index: usize, value: T) -> Result<(), String>;
}

Required Methods§

Source

fn try_set(&mut self, index: usize, value: T) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> TrySetExt<T> for Vec<T>

Source§

fn try_set(&mut self, index: usize, value: T) -> Result<(), String>

Source§

impl<T> TrySetExt<T> for [T]

Source§

fn try_set(&mut self, index: usize, value: T) -> Result<(), String>

Implementors§