Skip to main content

FallbackWSet

Struct FallbackWSet 

Source
pub struct FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,
{ /* private fields */ }

Implementations§

Source§

impl<K, R> FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl<K, R> AddAssignByRef for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn add_assign_by_ref(&mut self, rhs: &Self)

Source§

impl<K, R> AddByRef for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn add_by_ref(&self, rhs: &Self) -> Self

Source§

impl<K, R> Archive for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

type Archived = ()

The archived representation of this type. Read more
Source§

type Resolver = ()

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

unsafe fn resolve( &self, _pos: usize, _resolver: Self::Resolver, _out: *mut Self::Archived, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

impl<K, R> Batch for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

type Timed<T: Timestamp> = FallbackKeyBatch<K, T, R>

A batch type equivalent to Self, but with timestamp type T instead of Self::Time.
Source§

type Batcher = MergeBatcher<FallbackWSet<K, R>>

A type used to assemble batches from disordered updates.
Source§

type Builder = FallbackWSetBuilder<K, R>

A type used to assemble batches from ordered update sequences.
Source§

fn persisted(&self) -> Option<Self>

If this batch is not on storage, but supports writing itself to storage, this method writes it to storage and returns the stored version.
Source§

fn file_reader(&self) -> Option<Arc<dyn FileReader>>

This functions returns the file that can be used to restore the batch’s contents. Read more
Source§

fn from_path( factories: &Self::Factories, path: &StoragePath, ) -> Result<Self, ReaderError>

Source§

fn dyn_from_tuples( factories: &Self::Factories, time: Self::Time, tuples: &mut Box<DynWeightedPairs<DynPair<Self::Key, Self::Val>, Self::R>>, ) -> Self

Assemble an unordered vector of weighted items into a batch.
Source§

fn from_batch<BI>( batch: &BI, timestamp: &Self::Time, factories: &Self::Factories, ) -> Self
where BI: BatchReader<Key = Self::Key, Val = Self::Val, Time = (), R = Self::R>,

Creates a new batch as a copy of batch, using timestamp for all of the new batch’s timestamps This is useful for adding a timestamp to a batch, or for converting between different batch implementations (e.g. writing an in-memory batch to disk). Read more
Source§

fn from_arc_batch<BI>( batch: &Arc<BI>, timestamp: &Self::Time, factories: &Self::Factories, ) -> Arc<Self>
where BI: BatchReader<Key = Self::Key, Val = Self::Val, Time = (), R = Self::R>,

Like from_batch, but avoids cloning the batch if the output type is identical to the input type.
Source§

fn from_cursor<C>( cursor: C, timestamp: &Self::Time, factories: &Self::Factories, key_capacity: usize, value_capacity: usize, ) -> Self
where C: Cursor<Self::Key, Self::Val, (), Self::R>,

Creates a new batch as a copy of the tuples accessible via cursor``, using timestamp` for all of the new batch’s timestamps.
Source§

fn dyn_empty(factories: &Self::Factories) -> Self

Creates an empty batch.
Source§

fn filter(&self, predicate: &dyn Fn(&Self::Key, &Self::Val) -> bool) -> Self
where Self::Time: PartialEq<()> + From<()>,

Returns elements from self that satisfy a predicate.
Source§

impl<K, R> BatchReader for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

type Factories = FileWSetFactories<K, R>

Source§

type Key = K

Key by which updates are indexed.
Source§

type Val = dyn DataTyped<Type = ()>

Values associated with keys.
Source§

type Time = ()

Timestamps associated with updates
Source§

type R = R

Associated update.
Source§

type Cursor<'s> = DelegatingCursor<'s, K, dyn DataTyped<Type = ()>, (), R>

The type used to enumerate the batch’s contents.
Source§

fn factories(&self) -> Self::Factories

Source§

fn cursor(&self) -> Self::Cursor<'_>

Acquires a cursor to the batch’s contents.
Source§

fn push_cursor( &self, ) -> Box<dyn PushCursor<Self::Key, Self::Val, Self::Time, Self::R> + Send + '_>

Acquires a PushCursor for the batch’s contents.
Source§

fn merge_cursor( &self, key_filter: Option<Filter<Self::Key>>, value_filter: Option<GroupFilter<Self::Val>>, ) -> Box<dyn MergeCursor<Self::Key, Self::Val, Self::Time, Self::R> + Send + '_>

Acquires a MergeCursor for the batch’s contents.
Source§

fn consuming_cursor( &mut self, key_filter: Option<Filter<Self::Key>>, value_filter: Option<GroupFilter<Self::Val>>, ) -> Box<dyn MergeCursor<Self::Key, Self::Val, Self::Time, Self::R> + Send + '_>

Acquires a merge cursor for the batch’s contents.
Source§

fn key_count(&self) -> usize

The number of keys in the batch.
Source§

fn len(&self) -> usize

The number of updates in the batch.
Source§

fn approximate_byte_size(&self) -> usize

The memory or storage size of the batch in bytes. Read more
Source§

fn filter_stats(&self) -> BloomFilterStats

Statistics of the Bloom filter used by Cursor::seek_key_exact. The Bloom filter (kept in memory) is used there to quickly check whether a key might be present in the batch, before doing a binary tree lookup within the batch to be exactly sure. The statistics include for example the size in bytes and the hit rate. Only some kinds of batches use a filter; others should return BloomFilterStats::default().
Source§

fn location(&self) -> BatchLocation

Where the batch’s data is stored.
Source§

fn cache_stats(&self) -> CacheStats

Storage cache access statistics for this batch only. Read more
Source§

fn sample_keys<RG>( &self, rng: &mut RG, sample_size: usize, sample: &mut DynVec<Self::Key>, )
where RG: Rng,

Returns a uniform random sample of distincts keys from the batch. Read more
Source§

fn maybe_contains_key(&self, hash: u64) -> bool

A method that returns either true (possibly in the batch) or false (definitely not in the batch).
Source§

async fn fetch<B>( &self, keys: &B, ) -> Option<Box<dyn CursorFactory<Self::Key, Self::Val, Self::Time, Self::R>>>
where B: BatchReader<Key = Self::Key, Time = ()>,

Creates and returns a new batch that is a subset of this one, containing only the key-value pairs whose keys are in keys. May also return None, the default implementation, if the batch doesn’t want to implement this method. In particular, a batch for which access through a cursor is fast should return None to avoid the expense of copying data. Read more
Source§

fn keys(&self) -> Option<&DynVec<Self::Key>>

Source§

fn merge_cursor_with_snapshot<'a, S>( &'a self, key_filter: Option<Filter<Self::Key>>, value_filter: Option<GroupFilter<Self::Val>>, snapshot: &'a Option<Arc<S>>, ) -> Box<dyn MergeCursor<Self::Key, Self::Val, Self::Time, Self::R> + Send + 'a>
where S: BatchReader<Key = Self::Key, Val = Self::Val, Time = Self::Time, R = Self::R>,

Similar to merge_cursor, but invoked in the context of a spine merger. Takes the current spine snapshot as an extra argument and uses it to evaluate value_filter precisely.
Source§

fn is_empty(&self) -> bool

True if the batch is empty.
Source§

fn partition_keys(&self, num_partitions: usize, bounds: &mut DynVec<Self::Key>)
where Self::Time: PartialEq<()>,

Returns num_partitions-1 keys from the batch that partition the batch into num_partitions approximately equal size ranges 0..key1, key1..key2, … , key_num_partitions-1..last_key_in_the_batch. Read more
Source§

impl<K, R> Builder<FallbackWSet<K, R>> for FallbackWSetBuilder<K, R>
where Self: SizeOf, K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn with_capacity( factories: &FallbackWSetFactories<K, R>, key_capacity: usize, _value_capacity: usize, ) -> Self

Creates an empty builder with estimated capacities for keys and key-value pairs. Only tuple_capacity >= key_capacity makes sense but implementations must tolerate contradictory capacity requests.
Source§

fn for_merge<'a, B, I>( factories: &FallbackWSetFactories<K, R>, batches: I, location: Option<BatchLocation>, ) -> Self
where B: BatchReader, I: IntoIterator<Item = &'a B> + Clone,

Creates an empty builder to hold the result of merging batches. Optionally, location can specify the preferred location for the result of the merge.
Source§

fn push_time_diff(&mut self, time: &(), weight: &R)

Adds time-diff pair (time, weight).
Source§

fn push_val(&mut self, val: &DynUnit)

Adds value val.
Source§

fn push_key(&mut self, key: &K)

Adds key key.
Source§

fn push_time_diff_mut(&mut self, time: &mut (), weight: &mut R)

Adds time-diff pair (time, weight).
Source§

fn push_val_mut(&mut self, val: &mut DynUnit)

Adds value val.
Source§

fn push_key_mut(&mut self, key: &mut K)

Adds key key.
Source§

fn push_val_diff(&mut self, val: &DynUnit, weight: &R)

Adds time-diff pair (), weight and value val.
Source§

fn push_val_diff_mut(&mut self, val: &mut DynUnit, weight: &mut R)

Adds time-diff pair (), weight and value val.
Source§

fn reserve(&mut self, additional: usize)

Allocates room for additional keys.
Source§

fn done(self) -> FallbackWSet<K, R>

Completes building and returns the batch.
Source§

fn num_keys(&self) -> usize

Source§

fn num_tuples(&self) -> usize

Source§

fn new_builder(factories: &Output::Factories) -> Self

Creates a new builder with an initial capacity of 0.
Source§

fn push_diff(&mut self, weight: &Output::R)
where Output::Time: PartialEq<()>,

Adds time-diff pair (), weight.
Source§

fn push_diff_mut(&mut self, weight: &mut Output::R)
where Output::Time: PartialEq<()>,

Adds time-diff pair (), weight.
Source§

impl<K, R> Checkpoint for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn checkpoint(&self) -> Result<Vec<u8>, Error>

Source§

fn restore(&mut self, data: &[u8]) -> Result<(), Error>

Source§

impl<K, R> Clone for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<K, R> Debug for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<K, R, D> Deserialize<FallbackWSet<K, R>, D> for Archived<FallbackWSet<K, R>>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized, D: Fallible,

Source§

fn deserialize( &self, _deserializer: &mut D, ) -> Result<FallbackWSet<K, R>, D::Error>

Deserializes using the given deserializer
Source§

impl<K, R> DynFilterMap for OrdWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

type DynItemRef<'a> = &'a K

A borrowed version of the record type, e.g., (&K, &V) for a stream of (key, value, weight) tuples or &K if the value type is ().
Source§

fn item_ref<'a>(key: &'a Self::Key, _val: &'a Self::Val) -> Self::DynItemRef<'a>

Source§

fn item_ref_keyval(item_ref: Self::DynItemRef<'_>) -> (&Self::Key, &Self::Val)

Source§

fn dyn_filter<C: Circuit>( stream: &Stream<C, Self>, filter_func: Box<dyn Fn(Self::DynItemRef<'_>) -> bool>, ) -> Stream<C, Self>

Source§

fn dyn_map_generic<C: Circuit, O>( stream: &Stream<C, Self>, output_factories: &O::Factories, map_func: Box<dyn Fn(Self::DynItemRef<'_>, &mut DynPair<O::Key, O::Val>)>, ) -> Stream<C, O>
where O: Batch<Time = (), R = Self::R>,

Source§

fn dyn_flat_map_generic<C: Circuit, O>( stream: &Stream<C, Self>, output_factories: &O::Factories, func: Box<dyn FnMut(Self::DynItemRef<'_>, &mut dyn FnMut(&mut O::Key, &mut O::Val))>, ) -> Stream<C, O>
where O: Batch<Time = (), R = Self::R>,

Source§

impl<K, R> Neg for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTraitTyped + ?Sized, R::Type: DBWeight + ZRingValue + NegByRef + Erase<R>,

Source§

type Output = FallbackWSet<K, R>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<K, R> NegByRef for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTraitTyped + ?Sized, R::Type: DBWeight + ZRingValue + NegByRef + Erase<R>,

Source§

fn neg_by_ref(&self) -> Self

Source§

impl<K, R> NumEntries for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Source§

const CONST_NUM_ENTRIES: Option<usize> = None

Returns Some(n) if Self has constant size or None otherwise.
Source§

fn num_entries_shallow(&self) -> usize

Returns the number of entries in self.
Source§

fn num_entries_deep(&self) -> usize

Recursively computes the number of entries in a container by calling this method on each entry in self. Read more
Source§

impl<Other, K, R> PartialEq<Other> for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized, Other: BatchReader<Key = K, Val = DynUnit, R = R, Time = ()>,

Source§

fn eq(&self, other: &Other) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<K, R, S> Serialize<S> for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized, S: Serializer + ?Sized,

Source§

fn serialize(&self, _serializer: &mut S) -> Result<Self::Resolver, S::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
Source§

impl<K, R> SizeOf for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized, Inner<K, R>: SizeOf,

Source§

fn size_of_children(&self, context: &mut Context)

Gets the size of all “children” owned by this value, not including the size of the value itself. Read more
Source§

fn size_of(&self) -> TotalSize

Gets the total size of the current value
Source§

fn size_of_with_context(&self, context: &mut Context)

Adds the size of the current value to the given Context, including both the size of the value itself and all of its children
Source§

impl<K, R> Eq for FallbackWSet<K, R>
where K: DataTrait + ?Sized, R: WeightTrait + ?Sized,

Auto Trait Implementations§

§

impl<K, R> Freeze for FallbackWSet<K, R>
where K: ?Sized, R: ?Sized,

§

impl<K, R> !RefUnwindSafe for FallbackWSet<K, R>

§

impl<K, R> Send for FallbackWSet<K, R>
where K: ?Sized, R: ?Sized,

§

impl<K, R> Sync for FallbackWSet<K, R>
where K: ?Sized, R: ?Sized,

§

impl<K, R> Unpin for FallbackWSet<K, R>
where K: ?Sized, R: ?Sized,

§

impl<K, R> UnsafeUnpin for FallbackWSet<K, R>
where K: ?Sized, R: ?Sized,

§

impl<K, R> !UnwindSafe for FallbackWSet<K, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> ArchiveUnsized for T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

type MetadataResolver = ()

The resolver for the metadata of this type. Read more
Source§

unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata, )

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
Source§

unsafe fn resolve_unsized( &self, from: usize, to: usize, resolver: Self::MetadataResolver, out: *mut RelPtr<Self::Archived, <isize as Archive>::Archived>, )

Resolves a relative pointer to this value with the given from and to and writes it to the given output. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializableDyn for T
where T: ArchivedDBData,

Source§

unsafe fn deserialize_from_bytes_with( &mut self, bytes: &[u8], pos: usize, deserializer: &mut Deserializer, )

Deserialize self from the given slice and offset. Read more
Source§

unsafe fn deserialize_from_bytes(&mut self, bytes: &[u8], pos: usize)

Deserialize self from the given slice and offset using the default deserializer configuration. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<Z> IndexedZSet for Z
where Z: Batch<Time = (), R = dyn WeightTyped<Type = i64>> + AddByRef + AddAssignByRef + Neg<Output = Z> + NegByRef + Eq,

Source§

fn distinct(&self) -> Z

Returns an indexed Z-set that contains all elements with positive weights from self with weights set to 1.
Source§

fn distinct_owned(self) -> Self

Like distinct but optimized to operate on an owned value.
Source§

impl<Z> IndexedZSetReader for Z
where Z: BatchReader<Time = (), R = dyn WeightTyped<Type = i64>>,

Source§

fn iter(&self) -> IndexedZSetIterator<'_, Self>

Returns an iterator over updates in the indexed Z-set.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SerializeDyn for T
where T: ArchivedDBData,

Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Serializer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

fn serialize_metadata(&self, _: &mut S) -> Result<(), <S as Fallible>::Error>

Serializes the metadata for the given type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<B> WithSnapshot for B
where B: Batch,

Source§

type Batch = B

Source§

fn into_ro_snapshot(self) -> SpineSnapshot<B>

Source§

fn ro_snapshot(&self) -> SpineSnapshot<<B as WithSnapshot>::Batch>

Returns a read-only, non-merging snapshot of the current trace state.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<Z, K> ZSet for Z
where Z: IndexedZSet<Key = K, Val = dyn DataTyped<Type = ()>>, K: DataTrait + ?Sized,

Source§

fn weighted_count(&self, sum: &mut <Z as BatchReader>::R)

Sum of the weights of the elements in the Z-set. Weights can be negative, so the result can be zero even if the Z-set contains nonzero weights.
Source§

impl<T> Data for T
where T: Clone + 'static,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Rkyv for T

Source§

impl<T> SemigroupValue for T
where T: Clone + Eq + SizeOf + AddByRef + AddAssignByRef + 'static,

Source§

impl<B> ZBatch for B
where B: Batch<R = dyn WeightTyped<Type = i64>>,

Source§

impl<B> ZBatchReader for B
where B: BatchReader<R = dyn WeightTyped<Type = i64>>,

Source§

impl<Z> ZSetReader for Z
where Z: IndexedZSetReader<Val = dyn DataTyped<Type = ()>>,