Start generating arrays of specs for easier implementation of preference checks.

This commit is contained in:
Josh Matthews 2016-03-23 19:00:32 -04:00
parent 693d31d4ed
commit 88059acd7e
3 changed files with 43 additions and 21 deletions

View file

@ -557,3 +557,9 @@ unsafe extern "C" fn instance_class_has_proto_at_depth(clasp: *const js::jsapi::
pub const DOM_CALLBACKS: DOMCallbacks = DOMCallbacks {
instanceClassMatchesProto: Some(instance_class_has_proto_at_depth),
};
#[allow(missing_docs)]
pub struct Prefable<T: 'static> {
pub pref: Option<&'static str>,
pub specs: &'static [T]
}