feat: Added Typed impl for VecDequeue

This commit is contained in:
2025-10-22 01:14:21 +02:00
parent f6a6842914
commit 6e58664658

View File

@@ -2,7 +2,7 @@
use eui48::MacAddress;
pub use lua_typed_macro::Typed;
use std::{
collections::HashMap,
collections::{HashMap, VecDeque},
net::{Ipv4Addr, SocketAddr},
};
@@ -176,6 +176,12 @@ impl<T: Typed> Typed for Vec<T> {
}
}
impl<T: Typed> Typed for VecDeque<T> {
fn type_name() -> String {
format!("{}[]", <T as Typed>::type_name())
}
}
impl<K: Typed, V: Typed> Typed for HashMap<K, V> {
fn type_name() -> String {
format!(