Struct swc_atoms::EncodeJsWord
source · #[repr(C)]pub struct EncodeJsWord;
Expand description
NOT A PUBLIC API.
This type exists to allow serializing JsWord using rkyv
.
Trait Implementations§
source§impl ArchiveWith<Atom<JsWordStaticSet>> for EncodeJsWord
impl ArchiveWith<Atom<JsWordStaticSet>> for EncodeJsWord
source§impl ArchiveWith<Option<Atom<JsWordStaticSet>>> for EncodeJsWord
impl ArchiveWith<Option<Atom<JsWordStaticSet>>> for EncodeJsWord
source§impl<__C: ?Sized> CheckBytes<__C> for EncodeJsWord
impl<__C: ?Sized> CheckBytes<__C> for EncodeJsWord
§type Error = Infallible
type Error = Infallible
The error that may result from checking the type.
source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Infallible>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C ) -> Result<&'__bytecheck Self, Infallible>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl Clone for EncodeJsWord
impl Clone for EncodeJsWord
source§fn clone(&self) -> EncodeJsWord
fn clone(&self) -> EncodeJsWord
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 EncodeJsWord
impl Debug for EncodeJsWord
source§impl<D> DeserializeWith<<Option<String> as Archive>::Archived, Option<Atom<JsWordStaticSet>>, D> for EncodeJsWordwhere
D: ?Sized + Fallible,
impl<D> DeserializeWith<<Option<String> as Archive>::Archived, Option<Atom<JsWordStaticSet>>, D> for EncodeJsWordwhere D: ?Sized + Fallible,
source§impl<D> DeserializeWith<<String as Archive>::Archived, Atom<JsWordStaticSet>, D> for EncodeJsWordwhere
D: ?Sized + Fallible,
impl<D> DeserializeWith<<String as Archive>::Archived, Atom<JsWordStaticSet>, D> for EncodeJsWordwhere D: ?Sized + Fallible,
source§impl<S> SerializeWith<Atom<JsWordStaticSet>, S> for EncodeJsWordwhere
S: ?Sized + Serializer,
impl<S> SerializeWith<Atom<JsWordStaticSet>, S> for EncodeJsWordwhere S: ?Sized + Serializer,
source§impl<S> SerializeWith<Option<Atom<JsWordStaticSet>>, S> for EncodeJsWordwhere
S: ?Sized + Serializer,
impl<S> SerializeWith<Option<Atom<JsWordStaticSet>>, S> for EncodeJsWordwhere S: ?Sized + Serializer,
impl Copy for EncodeJsWord
Auto Trait Implementations§
impl RefUnwindSafe for EncodeJsWord
impl Send for EncodeJsWord
impl Sync for EncodeJsWord
impl Unpin for EncodeJsWord
impl UnwindSafe for EncodeJsWord
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> 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
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<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.