Enum webgl_generator::TypeKind
[−]
[src]
pub enum TypeKind { Primitive(Primitive), String, ArrayBuffer, ArrayBufferView, BufferSource, CanvasElement, TypedArray(Primitive), Sequence(Box<Type>), Union(Vec<Type>), Named(String), Any, Object, }
The definition of a type
Variants
Primitive(Primitive)
String
ArrayBuffer
ArrayBufferView
BufferSource
CanvasElement
TypedArray(Primitive)
Sequence(Box<Type>)
Union(Vec<Type>)
Named(String)
Any
Object
Methods
impl TypeKind
[src]
pub fn flatten<'a>(
&'a self,
registry: &'a Registry
) -> (Option<&'a str>, &'a TypeKind)
[src]
&'a self,
registry: &'a Registry
) -> (Option<&'a str>, &'a TypeKind)
Look through type aliases to find the "real" definition of a type. Also returns the "original name" if applicable.
Trait Implementations
impl Debug for TypeKind
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TypeKind
[src]
fn clone(&self) -> TypeKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for TypeKind
[src]
fn eq(&self, __arg_0: &TypeKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TypeKind) -> bool
[src]
This method tests for !=
.