Trait Return

Source
pub trait Return: Sized {
    // Required method
    fn ret(self, ctx: FunctionCtx) -> i32;
}

Required Methods§

Source

fn ret(self, ctx: FunctionCtx) -> i32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Return for &str
where &str: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for &CStr
where &CStr: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for bool
where bool: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for f32
where f32: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for f64
where f64: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for i8
where i8: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for i16
where i16: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for i32
where i32: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for i64
where i64: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for i128
where i128: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for isize

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for u8
where u8: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for u16
where u16: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for u32
where u32: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for u64
where u64: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for u128
where u128: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for ()

Source§

fn ret(self, _: FunctionCtx) -> i32

Source§

impl Return for usize

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for CString

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl Return for String

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Return for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Return for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Return for (C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Return for (D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<E> Return for Result<&RawBytes, E>
where E: IntoBoxError,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<E> Return for Result<RawByteBuf, E>
where E: IntoBoxError,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<E> Return for Result<Tuple, E>
where E: IntoBoxError,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<E> Return for Result<TupleBuffer, E>
where E: IntoBoxError,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<E, F, G, H, I, J, K, L, M, N, O, P, Q> Return for (E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<F, G, H, I, J, K, L, M, N, O, P, Q> Return for (F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<G, H, I, J, K, L, M, N, O, P, Q> Return for (G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<H, I, J, K, L, M, N, O, P, Q> Return for (H, I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<I, J, K, L, M, N, O, P, Q> Return for (I, J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<J, K, L, M, N, O, P, Q> Return for (J, K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<K> Return for BTreeSet<K>
where BTreeSet<K>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<K> Return for HashSet<K>
where HashSet<K>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<K, L, M, N, O, P, Q> Return for (K, L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<K, V> Return for BTreeMap<K, V>
where BTreeMap<K, V>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<K, V> Return for HashMap<K, V>
where HashMap<K, V>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<L, M, N, O, P, Q> Return for (L, M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<M, N, O, P, Q> Return for (M, N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<N, O, P, Q> Return for (N, O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<O, E> Return for Result<O, E>
where O: Serialize, E: IntoBoxError,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<O, P, Q> Return for (O, P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<P, Q> Return for (P, Q)

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<Q> Return for (Q,)
where (Q,): Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<V> Return for &[V]
where &[V]: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<V> Return for Option<V>
where Option<V>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<V> Return for Vec<V>
where Vec<V>: Serialize,

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Source§

impl<V, const N: usize> Return for [V; N]

Source§

fn ret(self, ctx: FunctionCtx) -> i32

Implementors§