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<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.