pub struct PortClass {
pub js_name: String,
pub rust_name: String,
pub constructor: PortFn,
pub methods: Vec<(PortFn, bool)>,
}Expand description
A port class: a struct with new and methods taking &self or &mut self.
Fields§
§js_name: String§rust_name: String§constructor: PortFn§methods: Vec<(PortFn, bool)>Trait Implementations§
impl Eq for PortClass
impl StructuralPartialEq for PortClass
Auto Trait Implementations§
impl Forget for PortClass
impl Freeze for PortClasswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(PortFn, bool)>: Freeze,
impl Move for PortClass
impl RefUnwindSafe for PortClass
impl Send for PortClasswhere
RawVecInner: Send,
impl Sync for PortClasswhere
RawVecInner: Sync,
impl Unpin for PortClass
impl UnsafeUnpin for PortClasswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(PortFn, bool)>: UnsafeUnpin,
impl UnwindSafe for PortClasswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.