Struct webgl_generator::Type [] [src]

pub struct Type {
    pub kind: TypeKind,
    pub optional: bool,
}

Fields

Optional types are the default in WebIDL, so we give this a special place in the Type reference. It's also convenient to be able to "squash" optional flags to avoid Option<Option<T>>.

Methods

impl Type
[src]

[src]

Return an optional version of this type reference. Returns an identical copy if the type is already optional.

Trait Implementations

impl Debug for Type
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Type
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Type
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Type
[src]

impl<'a> From<&'a str> for Type
[src]

[src]

Construct a type reference from a name

Auto Trait Implementations

impl Send for Type

impl Sync for Type