Struct swc_ecma_utils::NodeIgnoringSpan
source · pub struct NodeIgnoringSpan<'a, Node: ToOwned + Debug>(/* private fields */);
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 for NodeIgnoringSpan<'a, Node>
impl<'a, Node: EqIgnoreSpan + ToOwned + Debug> PartialEq 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>
impl<'a, Node> Send for NodeIgnoringSpan<'a, Node>
impl<'a, Node> Sync for NodeIgnoringSpan<'a, Node>
impl<'a, Node> Unpin for NodeIgnoringSpan<'a, Node>
impl<'a, Node> UnwindSafe for NodeIgnoringSpan<'a, Node>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.