Trait AttribProviderList

Source
pub trait AttribProviderList {
    type KeepType;

    // Required methods
    fn len(&self) -> usize;
    fn bind(&self, target: u32, 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, target: u32, 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)

Source§

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

Source§

fn len(&self) -> usize

Source§

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

Source§

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

Source§

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

Source§

fn len(&self) -> usize

Source§

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

Source§

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

Source§

impl<A0: AttribProviderList, A1: AttribProviderList, A2: AttribProviderList, A3: AttribProviderList, A4: AttribProviderList> AttribProviderList for (A0, A1, A2, A3, A4)

Source§

impl<A0: AttribProviderList, A1: AttribProviderList, A2: AttribProviderList, A3: AttribProviderList, A4: AttribProviderList, A5: AttribProviderList> AttribProviderList for (A0, A1, A2, A3, A4, A5)

Source§

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

Uses a normal array as attrib provider.

This is quite inefficient, but easy to use.

Implementors§