Skip to main content

Source

Trait Source 

Source
pub trait Source {
    // Required methods
    fn len(&self) -> usize;
    fn row(&self, index: usize) -> Cow<'_, Row>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn selectable(&self, index: usize) -> bool { ... }
    fn mark_width(&self) -> u16 { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn row(&self, index: usize) -> Cow<'_, Row>

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn selectable(&self, index: usize) -> bool

Source

fn mark_width(&self) -> u16

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Source for Arc<Vec<Row>>

Source§

fn len(&self) -> usize

Source§

fn row(&self, index: usize) -> Cow<'_, Row>

Source§

fn selectable(&self, index: usize) -> bool

Source§

fn mark_width(&self) -> u16

Source§

impl Source for Arc<[Row]>

Source§

fn len(&self) -> usize

Source§

fn row(&self, index: usize) -> Cow<'_, Row>

Source§

fn selectable(&self, index: usize) -> bool

Source§

fn mark_width(&self) -> u16

Source§

impl Source for Vec<Row>

Source§

fn len(&self) -> usize

Source§

fn row(&self, index: usize) -> Cow<'_, Row>

Source§

fn selectable(&self, index: usize) -> bool

Source§

fn mark_width(&self) -> u16

Implementors§

Source§

impl<T, B: Build<T>> Source for Shared<T, B>