Skip to main content

WordSource

Trait WordSource 

Source
pub trait WordSource {
    // Required method
    fn word(&self, index: ValueIndex) -> Word;
}
Expand description

A source of words addressable by ValueIndex.

ValueVec reads its own buffer. A ValueTable row reads a strided column instead.

Required Methods§

Source

fn word(&self, index: ValueIndex) -> Word

Returns the word at the given index.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl WordSource for ValueVec

Source§

impl<Data: Deref<Target = [Word]>> WordSource for TableInstance<'_, Data>