use crate::script::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ScriptPop;
#[export_module]
#[allow(non_snake_case, non_upper_case_globals)]
pub(crate) mod PopModule {
use super::Pop;
use crate::value::literal::TokenLiteral;
pub const first: Pop = Pop::First;
pub const last: Pop = Pop::Last;
pub const all: Pop = Pop::All;
pub const mixed: Pop = Pop::Mixed;
pub const First: Pop = Pop::First;
pub const Last: Pop = Pop::Last;
pub const All: Pop = Pop::All;
pub const Mixed: Pop = Pop::Mixed;
#[rhai_fn(global, name = "to_string", name = "to_debug", pure)]
pub fn to_string(pop: &mut Pop) -> String {
pop.token_literal()
}
#[rhai_fn(global, name = "==", pure)]
pub fn eq(left: &mut Pop, right: Pop) -> bool {
*left == right
}
#[rhai_fn(global, name = "!=", pure)]
pub fn ne(left: &mut Pop, right: Pop) -> bool {
*left != right
}
}