Trait Poppable

Source
pub trait Poppable: Sized {
    // Required method
    unsafe fn pop(lua_state: *mut State) -> Result<Self, Error>;
}
Expand description

Trait implemented for types that can be popped off the Lua stack.

Required Methods§

Source

unsafe fn pop(lua_state: *mut State) -> Result<Self, Error>

Pops the value at the top of the stack.

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 Poppable for bool

Source§

unsafe fn pop(state: *mut State) -> Result<bool, Error>

Source§

impl Poppable for f32

Source§

unsafe fn pop(state: *mut State) -> Result<f32, Error>

Source§

impl Poppable for f64

Source§

unsafe fn pop(state: *mut State) -> Result<f64, Error>

Source§

impl Poppable for i8

Source§

unsafe fn pop(lstate: *mut State) -> Result<i8, Error>

Source§

impl Poppable for i16

Source§

unsafe fn pop(lstate: *mut State) -> Result<i16, Error>

Source§

impl Poppable for i32

Source§

unsafe fn pop(lstate: *mut State) -> Result<i32, Error>

Source§

impl Poppable for i64

Source§

unsafe fn pop(lstate: *mut State) -> Result<i64, Error>

Source§

impl Poppable for isize

Source§

unsafe fn pop(state: *mut State) -> Result<isize, Error>

Source§

impl Poppable for u8

Source§

unsafe fn pop(lstate: *mut State) -> Result<u8, Error>

Source§

impl Poppable for u16

Source§

unsafe fn pop(lstate: *mut State) -> Result<u16, Error>

Source§

impl Poppable for u32

Source§

unsafe fn pop(lstate: *mut State) -> Result<u32, Error>

Source§

impl Poppable for u64

Source§

unsafe fn pop(lstate: *mut State) -> Result<u64, Error>

Source§

impl Poppable for ()

Source§

unsafe fn pop(state: *mut State) -> Result<(), Error>

Source§

impl Poppable for usize

Source§

unsafe fn pop(lstate: *mut State) -> Result<usize, Error>

Source§

impl Poppable for String

Source§

unsafe fn pop(state: *mut State) -> Result<String, Error>

Source§

impl<A> Poppable for (A,)
where A: Poppable,

Source§

unsafe fn pop(state: *mut State) -> Result<(A,), Error>

Source§

impl<A, B> Poppable for (A, B)
where A: Poppable, B: Poppable,

Source§

unsafe fn pop(state: *mut State) -> Result<(A, B), Error>

Source§

impl<A, B, C> Poppable for (A, B, C)
where A: Poppable, B: Poppable, C: Poppable,

Source§

impl<A, B, C, D> Poppable for (A, B, C, D)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable,

Source§

impl<A, B, C, D, E> Poppable for (A, B, C, D, E)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable,

Source§

impl<A, B, C, D, E, F> Poppable for (A, B, C, D, E, F)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable,

Source§

impl<A, B, C, D, E, F, G> Poppable for (A, B, C, D, E, F, G)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable,

Source§

impl<A, B, C, D, E, F, G, H> Poppable for (A, B, C, D, E, F, G, H)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I> Poppable for (A, B, C, D, E, F, G, H, I)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J> Poppable for (A, B, C, D, E, F, G, H, I, J)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> Poppable for (A, B, C, D, E, F, G, H, I, J, K)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable, K: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Poppable for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable, K: Poppable, L: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Poppable for (A, B, C, D, E, F, G, H, I, J, K, L, M)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable, K: Poppable, L: Poppable, M: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Poppable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable, K: Poppable, L: Poppable, M: Poppable, N: Poppable,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Poppable for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)
where A: Poppable, B: Poppable, C: Poppable, D: Poppable, E: Poppable, F: Poppable, G: Poppable, H: Poppable, I: Poppable, J: Poppable, K: Poppable, L: Poppable, M: Poppable, N: Poppable, O: Poppable,

Source§

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

Source§

impl<K, V> Poppable for HashMap<K, V>
where K: Poppable + Eq + Hash, V: Poppable,

Source§

unsafe fn pop(state: *mut State) -> Result<HashMap<K, V>, Error>

Source§

impl<T> Poppable for Option<T>
where T: Poppable,

Source§

unsafe fn pop(state: *mut State) -> Result<Option<T>, Error>

Source§

impl<T> Poppable for Vec<T>
where T: Poppable,

Source§

unsafe fn pop(state: *mut State) -> Result<Vec<T>, Error>

Implementors§