pub struct WebidlTypes { /* private fields */ }Implementations§
Source§impl WebidlTypes
impl WebidlTypes
pub fn by_name(&self, name: &str) -> Option<Id<WebidlCompoundType>>
pub fn by_index(&self, index: u32) -> Option<Id<WebidlCompoundType>>
pub fn get<T>(&self, id: T::Id) -> Option<&T>where
T: WebidlTypeId,
pub fn get_mut<T>(&mut self, id: T::Id) -> Option<&mut T>where
T: WebidlTypeId,
pub fn insert<T>(&mut self, ty: T) -> T::Idwhere
T: WebidlTypeId,
Trait Implementations§
Source§impl Clone for WebidlTypes
impl Clone for WebidlTypes
Source§fn clone(&self) -> WebidlTypes
fn clone(&self) -> WebidlTypes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebidlTypes
impl Debug for WebidlTypes
Source§impl Default for WebidlTypes
impl Default for WebidlTypes
Source§fn default() -> WebidlTypes
fn default() -> WebidlTypes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebidlTypes
impl RefUnwindSafe for WebidlTypes
impl Send for WebidlTypes
impl Sync for WebidlTypes
impl Unpin for WebidlTypes
impl UnwindSafe for WebidlTypes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more