Struct swc_ecma_utils::NodeIgnoringSpan
source · pub struct NodeIgnoringSpan<'a, Node: ToOwned + Debug>(_);
Expand description
A newtype that will ignore Span while doing eq
or hash
.
Implementations§
Trait Implementations§
source§impl<'a> Hash for NodeIgnoringSpan<'a, Expr>
impl<'a> Hash for NodeIgnoringSpan<'a, Expr>
source§impl<'a, Node: EqIgnoreSpan + ToOwned + Debug> PartialEq<NodeIgnoringSpan<'a, Node>> for NodeIgnoringSpan<'a, Node>
impl<'a, Node: EqIgnoreSpan + ToOwned + Debug> PartialEq<NodeIgnoringSpan<'a, Node>> for NodeIgnoringSpan<'a, Node>
impl<'a, Node: EqIgnoreSpan + ToOwned + Debug> Eq for NodeIgnoringSpan<'a, Node>
Auto Trait Implementations§
impl<'a, Node> RefUnwindSafe for NodeIgnoringSpan<'a, Node>where Node: RefUnwindSafe, <Node as ToOwned>::Owned: RefUnwindSafe,
impl<'a, Node> Send for NodeIgnoringSpan<'a, Node>where Node: Sync, <Node as ToOwned>::Owned: Send,
impl<'a, Node> Sync for NodeIgnoringSpan<'a, Node>where Node: Sync, <Node as ToOwned>::Owned: Sync,
impl<'a, Node> Unpin for NodeIgnoringSpan<'a, Node>where <Node as ToOwned>::Owned: Unpin,
impl<'a, Node> UnwindSafe for NodeIgnoringSpan<'a, Node>where Node: RefUnwindSafe, <Node as ToOwned>::Owned: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.