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