feat: Added Typed impl for VecDequeue
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user