pub trait AttribProviderList {
    type KeepType;

    // Required methods
    fn len(&self) -> usize;
    fn bind(&self, p: &Program) -> Self::KeepType;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

source

fn len(&self) -> usize

source

fn bind(&self, p: &Program) -> Self::KeepType

Provided Methods§

source

fn is_empty(&self) -> bool

Implementations on Foreign Types§

source§

impl<A0: AttribProviderList, A1: AttribProviderList> AttribProviderList for (A0, A1)

§

type KeepType = (<A0 as AttribProviderList>::KeepType, <A1 as AttribProviderList>::KeepType)

source§

fn len(&self) -> usize

source§

fn bind(&self, p: &Program) -> (A0::KeepType, A1::KeepType)

source§

impl<A: AttribProvider> AttribProviderList for &[A]

Uses a normal array as attrib provider.

This is quite inefficient, but easy to use.

Implementors§