Add Webee stuff

This commit is contained in:
2023-08-24 01:53:41 +02:00
parent 86994e0f8c
commit 3c5a7215d1
7 changed files with 215 additions and 15 deletions

19
src/webee/vector.rs Normal file
View File

@@ -0,0 +1,19 @@
pub struct Vector<'a, T> {
size: u16,
array: &'a [T]
}
impl<'a, T> Vector<'a, T> {
pub fn new(size: u16, array: &[T]) -> Self {
Self {
size, array
}
}
}
#[macro_export]
macro_rules! vector {
($array:expr) => {
Vector::new($array.len(), $array);
};
}