Add new Buffer type for Luau.

Previously it was represented as `AnyUserData` which is not always convenient.
This commit is contained in:
Alex Orlenko
2024-10-01 15:21:19 +01:00
parent 4dddf3c18d
commit 529361fcbc
15 changed files with 248 additions and 91 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ use super::LuaType;
/// By default vectors are 3-dimensional, but can be 4-dimensional
/// if the `luau-vector4` feature is enabled.
#[cfg_attr(docsrs, doc(cfg(feature = "luau")))]
#[derive(Debug, Default, Clone, Copy, PartialEq)]
#[derive(Debug, Default, Clone, Copy, PartialEq, PartialOrd)]
pub struct Vector(pub(crate) [f32; Self::SIZE]);
impl fmt::Display for Vector {