pub struct InterfaceMatcher {
pub namespaces: HashSet<String>,
pub namespace_imports: HashMap<String, HashSet<Import>>,
pub exports: HashSet<Export>,
}
Expand description
A struct containing data for more efficient matching.
An ideal use case for this is to parse [Interface
]s at compile time,
create InterfaceMatcher
s, and store them as bytes so that they
can be efficiently loaded at runtime for matching.
Fields§
§namespaces: HashSet<String>
§namespace_imports: HashMap<String, HashSet<Import>>
§exports: HashSet<Export>
Trait Implementations§
source§impl Clone for InterfaceMatcher
impl Clone for InterfaceMatcher
source§fn clone(&self) -> InterfaceMatcher
fn clone(&self) -> InterfaceMatcher
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InterfaceMatcher
impl Debug for InterfaceMatcher
source§impl Default for InterfaceMatcher
impl Default for InterfaceMatcher
source§fn default() -> InterfaceMatcher
fn default() -> InterfaceMatcher
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InterfaceMatcher
impl<'de> Deserialize<'de> for InterfaceMatcher
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InterfaceMatcher
impl PartialEq for InterfaceMatcher
source§fn eq(&self, other: &InterfaceMatcher) -> bool
fn eq(&self, other: &InterfaceMatcher) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InterfaceMatcher
impl Serialize for InterfaceMatcher
impl Eq for InterfaceMatcher
impl StructuralEq for InterfaceMatcher
impl StructuralPartialEq for InterfaceMatcher
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceMatcher
impl Send for InterfaceMatcher
impl Sync for InterfaceMatcher
impl Unpin for InterfaceMatcher
impl UnwindSafe for InterfaceMatcher
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more