Trait CellsSchemaExt

Source
pub trait CellsSchemaExt: CellsSchema {
    // Required method
    fn map_ref<'a>(self) -> impl CellsSchema<Source = &'a Self::Source>
       where Self::Source: 'a;

    // Provided method
    fn as_ref(&self) -> impl CellsSchema<Source = &Self::Source> { ... }
}
Expand description

Extension trait for CellsSchema.

Required Methods§

Source

fn map_ref<'a>(self) -> impl CellsSchema<Source = &'a Self::Source>
where Self::Source: 'a,

Provided Methods§

Source

fn as_ref(&self) -> impl CellsSchema<Source = &Self::Source>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> CellsSchemaExt for T
where T: CellsSchema,