pub fn update(&self, index: usize, element: T) {
        if let Some(elem) = self.inner.borrow_mut().get_mut(index) {
            *elem = element;
        }
        (self.update)();
    }
/// Update the element at the specified index
Update the element at the specified index
Update the element at the specified index
pub fn update(&self, index: usize, element: T) {
        if let Some(elem) = self.inner.borrow_mut().get_mut(index) {
            *elem = element;
        }
        (self.update)();
    }
pub fn update ( & self , index : usize , element : T ) { if let Some ( elem ) = self . inner . borrow_mut ( ) . get_mut ( index ) { * elem = element ; } ( self . update ) ( ) ; }
Update the element at the specified index
Update the element at the specified index
&self
index
usize
element
T
&self
index
usize
element
T