Skip to main content

ColNames

Trait ColNames 

Source
pub trait ColNames {
    type Name;

    // Required methods
    fn name_count(&self) -> usize;
    fn name_at(&self, idx: usize) -> Self::Name;
}
Expand description

A property column that contributes one or more PropNames.

Scalar and string columns contribute exactly one name; SharedDict columns contribute one per sub-item.

Required Associated Types§

Source

type Name

Always PropName<'tile>. It cannot be written as PropName<'_> directly: that would tie names to the &self borrow rather than to the tile buffer, so they could no longer outlive the layer.

Required Methods§

Source

fn name_count(&self) -> usize

Number of names this column contributes.

Source

fn name_at(&self, idx: usize) -> Self::Name

The name at sub-index idx, which must be less than Self::name_count.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§