Trait webidl_utils::symbol::SymbolWithGenerics

source ·
pub trait SymbolWithGenerics {
    type GenericType;

    // Required method
    fn generics(self) -> Generics<Self::GenericType>;
}
Expand description

A WebIDL symbol with generic types

Required Associated Types§

Required Methods§

source

fn generics(self) -> Generics<Self::GenericType>

Implementations on Foreign Types§

source§

impl<'a> SymbolWithGenerics for DoubleTypedAsyncIterable<'a>

§

type GenericType = (AttributedType<'a>, Comma, AttributedType<'a>)

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for DoubleTypedIterable<'a>

§

type GenericType = (AttributedType<'a>, Comma, AttributedType<'a>)

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for FrozenArrayType<'a>

§

type GenericType = Box<Type<'a>>

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for MaplikeInterfaceMember<'a>

§

type GenericType = (AttributedType<'a>, Comma, AttributedType<'a>)

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for PromiseType<'a>

§

type GenericType = Box<ReturnType<'a>>

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for RecordType<'a>

§

type GenericType = (Box<RecordKeyType<'a>>, Comma, Box<Type<'a>>)

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for SequenceType<'a>

§

type GenericType = Box<Type<'a>>

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for SetlikeInterfaceMember<'a>

§

type GenericType = AttributedType<'a>

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for SingleTypedAsyncIterable<'a>

§

type GenericType = AttributedType<'a>

source§

fn generics(self) -> Generics<Self::GenericType>

source§

impl<'a> SymbolWithGenerics for SingleTypedIterable<'a>

§

type GenericType = AttributedType<'a>

source§

fn generics(self) -> Generics<Self::GenericType>

Implementors§