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 PortClass
impl Move for PortClass
impl RefUnwindSafe for PortClass
impl Send for PortClass
impl Sync for PortClass
impl Unpin for PortClass
impl UnsafeUnpin for PortClass
impl UnwindSafe for PortClass
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.