Skip to main content

AltListImpl

Trait AltListImpl 

Source
pub trait AltListImpl {
    // Required method
    fn elt(&self, _index: usize) -> Robj;

    // Provided method
    fn set_elt(&mut self, _index: usize, _value: Robj) { ... }
}

Required Methods§

Source

fn elt(&self, _index: usize) -> Robj

Get a single element from this vector a single element of a list can be any Robj

Provided Methods§

Source

fn set_elt(&mut self, _index: usize, _value: Robj)

Set a single element in this list.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§