Macro script::maplike

source ยท
macro_rules! maplike {
    ( $self:ident, $internal:ident ) => { ... };
}
Expand description

Usage:

pub struct TestBindingMaplike {
    // maplike<DOMString, long>
    internal: DomRefCell<IndexMap<DOMString, i32>>,
}
impl Maplike for TestBindingSetlike {
    type Key = DOMString;
    type Value = i32;
    maplike!(self, internal);
}