pub struct DbspSerializer<'a> { /* private fields */ }Expand description
The rkyv::ser::Serializer used by DBSP.
Trait Implementations§
Source§impl Fallible for DbspSerializer<'_>
impl Fallible for DbspSerializer<'_>
Source§type Error = CompositeSerializerError<<FBufSerializer<FBuf> as Fallible>::Error, <DbspScratch as Fallible>::Error, SharedSerializeMapError>
type Error = CompositeSerializerError<<FBufSerializer<FBuf> as Fallible>::Error, <DbspScratch as Fallible>::Error, SharedSerializeMapError>
The error produced by any failing methods.
Source§impl ScratchSpace for DbspSerializer<'_>
impl ScratchSpace for DbspSerializer<'_>
Source§impl Serialize<DbspSerializer<'_>> for Box<DynData>
impl Serialize<DbspSerializer<'_>> for Box<DynData>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T> Serialize<DbspSerializer<'_>> for Box<DynDataTyped<T>>
impl<T> Serialize<DbspSerializer<'_>> for Box<DynDataTyped<T>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T> Serialize<DbspSerializer<'_>> for Box<DynOpt<T>>
impl<T> Serialize<DbspSerializer<'_>> for Box<DynOpt<T>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynPair<T1, T2>>
impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynPair<T1, T2>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynPairs<T1, T2>>
impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynPairs<T1, T2>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T> Serialize<DbspSerializer<'_>> for Box<DynSet<T>>
impl<T> Serialize<DbspSerializer<'_>> for Box<DynSet<T>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T> Serialize<DbspSerializer<'_>> for Box<DynVec<T>>
impl<T> Serialize<DbspSerializer<'_>> for Box<DynVec<T>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl Serialize<DbspSerializer<'_>> for Box<DynWeight>
impl Serialize<DbspSerializer<'_>> for Box<DynWeight>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T> Serialize<DbspSerializer<'_>> for Box<DynWeightTyped<T>>
impl<T> Serialize<DbspSerializer<'_>> for Box<DynWeightTyped<T>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynWeightedPairs<T1, T2>>
impl<T1, T2> Serialize<DbspSerializer<'_>> for Box<DynWeightedPairs<T1, T2>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T, D> Serialize<DbspSerializer<'_>> for TypedBox<T, D>
impl<T, D> Serialize<DbspSerializer<'_>> for TypedBox<T, D>
Source§fn serialize(
&self,
serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<T, R> Serialize<DbspSerializer<'_>> for Box<DynAverage<T, R>>
impl<T, R> Serialize<DbspSerializer<'_>> for Box<DynAverage<T, R>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<VTrait, UTrait> Serialize<DbspSerializer<'_>> for Box<dyn UpdateTrait<VTrait, UTrait>>
impl<VTrait, UTrait> Serialize<DbspSerializer<'_>> for Box<dyn UpdateTrait<VTrait, UTrait>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<KTrait, VTrait> Serialize<DbspSerializer<'_>> for Box<DynNeighborhoodDescr<KTrait, VTrait>>
impl<KTrait, VTrait> Serialize<DbspSerializer<'_>> for Box<DynNeighborhoodDescr<KTrait, VTrait>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn ChildPtrTrait<TS, A>>
impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn ChildPtrTrait<TS, A>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn TreeNodeTrait<TS, A>>
impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn TreeNodeTrait<TS, A>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn TreeNodeUpdateTrait<TS, A>>
impl<TS, A> Serialize<DbspSerializer<'_>> for Box<dyn TreeNodeUpdateTrait<TS, A>>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Serialize<DbspSerializer<'_>> for FileWSet<K, R>
impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Serialize<DbspSerializer<'_>> for FileWSet<K, R>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<K, V, R, O> Serialize<DbspSerializer<'_>> for VecIndexedWSet<K, V, R, O>
impl<K, V, R, O> Serialize<DbspSerializer<'_>> for VecIndexedWSet<K, V, R, O>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<K, T, R, O> Serialize<DbspSerializer<'_>> for VecKeyBatch<K, T, R, O>
impl<K, T, R, O> Serialize<DbspSerializer<'_>> for VecKeyBatch<K, T, R, O>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<K, V, T, R, O> Serialize<DbspSerializer<'_>> for VecValBatch<K, V, T, R, O>
impl<K, V, T, R, O> Serialize<DbspSerializer<'_>> for VecValBatch<K, V, T, R, O>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Serialize<DbspSerializer<'_>> for VecWSet<K, R>
impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Serialize<DbspSerializer<'_>> for VecWSet<K, R>
Source§fn serialize(
&self,
_serializer: &mut DbspSerializer<'_>,
) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
fn serialize( &self, _serializer: &mut DbspSerializer<'_>, ) -> Result<Self::Resolver, <DbspSerializer<'_> as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can create the archived
type.
Source§impl Serializer for DbspSerializer<'_>
impl Serializer for DbspSerializer<'_>
Source§fn write(&mut self, bytes: &[u8]) -> Result<(), Self::Error>
fn write(&mut self, bytes: &[u8]) -> Result<(), Self::Error>
Attempts to write the given bytes to the serializer.
Source§fn pad(&mut self, padding: usize) -> Result<(), Self::Error>
fn pad(&mut self, padding: usize) -> Result<(), Self::Error>
Advances the given number of bytes as padding.
Source§fn align(&mut self, align: usize) -> Result<usize, Self::Error>
fn align(&mut self, align: usize) -> Result<usize, Self::Error>
Aligns the position of the serializer to the given alignment.
Source§fn align_for<T>(&mut self) -> Result<usize, Self::Error>
fn align_for<T>(&mut self) -> Result<usize, Self::Error>
Aligns the position of the serializer to be suitable to write the given type.
Source§unsafe fn resolve_aligned<T>(
&mut self,
value: &T,
resolver: <T as Archive>::Resolver,
) -> Result<usize, Self::Error>
unsafe fn resolve_aligned<T>( &mut self, value: &T, resolver: <T as Archive>::Resolver, ) -> Result<usize, Self::Error>
Resolves the given value with its resolver and writes the archived type. Read more
Source§fn serialize_value<T>(&mut self, value: &T) -> Result<usize, Self::Error>where
T: Serialize<Self>,
fn serialize_value<T>(&mut self, value: &T) -> Result<usize, Self::Error>where
T: Serialize<Self>,
Archives the given object and returns the position it was archived at.
Source§unsafe fn resolve_unsized_aligned<T>(
&mut self,
value: &T,
to: usize,
metadata_resolver: <T as ArchiveUnsized>::MetadataResolver,
) -> Result<usize, Self::Error>where
T: ArchiveUnsized + ?Sized,
unsafe fn resolve_unsized_aligned<T>(
&mut self,
value: &T,
to: usize,
metadata_resolver: <T as ArchiveUnsized>::MetadataResolver,
) -> Result<usize, Self::Error>where
T: ArchiveUnsized + ?Sized,
Resolves the given reference with its resolver and writes the archived reference. Read more
Source§fn serialize_unsized_value<T>(
&mut self,
value: &T,
) -> Result<usize, Self::Error>where
T: SerializeUnsized<Self> + ?Sized,
fn serialize_unsized_value<T>(
&mut self,
value: &T,
) -> Result<usize, Self::Error>where
T: SerializeUnsized<Self> + ?Sized,
Archives a reference to the given object and returns the position it was archived at.
Gets the position of a previously-added shared pointer. Read more
Adds the position of a shared pointer to the registry.
Gets the position of a previously-added shared value. Read more
Adds the position of a shared value to the registry.
Archives the given shared value and returns its position. If the value has already been
added then it returns the position of the previously added value.
Auto Trait Implementations§
impl<'a> !UnwindSafe for DbspSerializer<'a>
impl<'a> Freeze for DbspSerializer<'a>
impl<'a> RefUnwindSafe for DbspSerializer<'a>
impl<'a> Send for DbspSerializer<'a>
impl<'a> Sync for DbspSerializer<'a>
impl<'a> Unpin for DbspSerializer<'a>
impl<'a> UnsafeUnpin for DbspSerializer<'a>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§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 F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.