Struct webgl_generator::Type
[−]
[src]
pub struct Type { pub kind: TypeKind, pub optional: bool, }
Fields
kind: TypeKind
optional: bool
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]
pub fn optional(&self) -> Self
[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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Type
[src]
fn clone(&self) -> Type
[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 Type
[src]
fn eq(&self, __arg_0: &Type) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Type) -> bool
[src]
This method tests for !=
.