use crate::script::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ScriptBarrier;
#[export_module]
#[allow(non_snake_case, non_upper_case_globals)]
pub(crate) mod BarrierModule {
use super::Barrier;
use crate::value::literal::TokenLiteral;
pub const normSack: Barrier = Barrier::NormSack;
#[rhai_fn(global, name = "to_string", name = "to_debug", pure)]
pub fn to_string(barrier: &mut Barrier) -> String {
barrier.token_literal()
}
#[rhai_fn(global, name = "==", pure)]
pub fn eq(left: &mut Barrier, right: Barrier) -> bool {
*left == right
}
#[rhai_fn(global, name = "!=", pure)]
pub fn ne(left: &mut Barrier, right: Barrier) -> bool {
*left != right
}
}