pub mod element_type;
pub use element_type::{ElementScript, ElementType};
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub struct EnumConstant<T> {
rust_name: &'static str,
godot_name: &'static str,
value: T,
}
impl<T> EnumConstant<T>
where
T: Copy,
{
pub(crate) const fn new(rust_name: &'static str, godot_name: &'static str, value: T) -> Self {
Self {
rust_name,
godot_name,
value,
}
}
pub const fn rust_name(&self) -> &'static str {
self.rust_name
}
pub const fn godot_name(&self) -> &'static str {
self.godot_name
}
pub const fn value(&self) -> T {
self.value
}
}