pub struct PortApi {
pub functions: Vec<PortFn>,
pub classes: Vec<PortClass>,
pub structs: Vec<String>,
pub ranked: Vec<String>,
}Expand description
What port.rs offers to JS. methods pairs each method with whether it takes &mut self.
Fields§
§functions: Vec<PortFn>§classes: Vec<PortClass>§structs: Vec<String>Every pub struct of port.rs (a batch uses <Name>Index when the port defines one).
ranked: Vec<String>The structs whose impl has a pub fn rank (an index that ranks by itself).
Implementations§
Trait Implementations§
impl Eq for PortApi
impl StructuralPartialEq for PortApi
Auto Trait Implementations§
impl Forget for PortApi
impl Freeze for PortApiwhere
*const u8 is !null: Freeze,
PhantomData<PortFn>: Freeze,
PhantomData<PortClass>: Freeze,
PhantomData<String>: Freeze,
impl Move for PortApi
impl RefUnwindSafe for PortApi
impl Send for PortApiwhere
RawVecInner: Send,
impl Sync for PortApiwhere
RawVecInner: Sync,
impl Unpin for PortApi
impl UnsafeUnpin for PortApiwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PortFn>: UnsafeUnpin,
PhantomData<PortClass>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for PortApiwhere
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.