pub enum RType {
Str,
F64,
Int,
Bool,
Bytes,
Unit,
Vec(Box<RType>),
Opt(Box<RType>),
Json,
}Expand description
A Rust type as seen by the port, from a TS type annotation.
Variants§
Str
F64
Int
A whole number (int in the type dialect: Python, Go, Java and C have one; JS does not).
Bool
Bytes
A byte buffer (bytes in the type dialect): Vec<u8> in the port.
Unit
Vec(Box<RType>)
Opt(Box<RType>)
Json
Anything structured: crosses the bridge as JSON.
Implementations§
Trait Implementations§
impl Eq for RType
impl StructuralPartialEq for RType
Auto Trait Implementations§
impl Forget for RType
impl Freeze for RType
impl Move for RType
impl RefUnwindSafe for RType
impl Send for RType
impl Sync for RType
impl Unpin for RType
impl UnsafeUnpin for RType
impl UnwindSafe for RType
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.