Enum webgl_generator::NamedType
source · pub enum NamedType {
Mixin(Mixin),
Interface(Interface),
Dictionary(Dictionary),
Enum(Enum),
Typedef(Type),
Callback(Callback),
}
Variants
Mixin(Mixin)
Interface(Interface)
Dictionary(Dictionary)
Enum(Enum)
Typedef(Type)
Callback(Callback)
Implementations
sourceimpl NamedType
impl NamedType
pub fn as_mixin(&self) -> Option<&Mixin>
pub fn as_interface(&self) -> Option<&Interface>
pub fn as_dictionary(&self) -> Option<&Dictionary>
pub fn as_enum(&self) -> Option<&Enum>
pub fn as_typedef(&self) -> Option<&Type>
pub fn as_mixin_mut(&mut self) -> Option<&mut Mixin>
pub fn as_interface_mut(&mut self) -> Option<&mut Interface>
pub fn as_dictionary_mut(&mut self) -> Option<&mut Dictionary>
pub fn as_enum_mut(&mut self) -> Option<&mut Enum>
pub fn as_typedef_mut(&mut self) -> Option<&mut Type>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NamedType
impl Send for NamedType
impl Sync for NamedType
impl Unpin for NamedType
impl UnwindSafe for NamedType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more