Skip to main content

TypedBatch

Struct TypedBatch 

Source
pub struct TypedBatch<K, V, R, B> { /* private fields */ }
Expand description

A statically typed wrapper around a dynamically typed batch B with concrete key, value, and weight types K, V, and R respectively.

Implementations§

Source§

impl<K, V, R, B> TypedBatch<K, V, R, B>

Source

pub fn new(inner: B) -> Self

Source§

impl<K, V, R, B> TypedBatch<K, V, R, B>
where B: DynBatch, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source

pub fn empty() -> Self

Create an empty batch.

Source

pub fn from_tuples(time: B::Time, tuples: Vec<Tup2<Tup2<K, V>, R>>) -> Self

Build a batch out of tuples.

Source

pub fn merge(&self, other: &Self) -> Self

Merge self with other.

Source

pub fn merge_batches<I>(batches: I) -> Self
where I: IntoIterator<Item = Self>,

Source§

impl<K, V, R, B> TypedBatch<K, V, R, B>

Source

pub fn into_inner(self) -> B

Source§

impl<K, R, B> TypedBatch<K, (), R, B>
where B: DynBatch, K: DBData + Erase<B::Key>, (): Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source

pub fn from_keys(time: B::Time, tuples: Vec<Tup2<K, R>>) -> Self

Source§

impl<K, V, R, B> TypedBatch<K, V, R, DynSpineSnapshot<B>>
where B: DynBatch, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source

pub fn concat<'a, I>(snapshots: I) -> TypedBatch<K, V, R, DynSpineSnapshot<B>>
where I: IntoIterator<Item = &'a Self>,

Concatenate a list of snapshots into a single snapshot.

Source

pub fn consolidate(&self) -> TypedBatch<K, V, R, B>

Consolidate the batches in the snapshot.

Source§

impl<K, V, R, B> TypedBatch<K, V, R, B>
where B: DynTrace, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source

pub fn consolidate(self) -> TypedBatch<K, V, R, B::Batch>

Consolidate the batches in the trace.

Source§

impl<K, V, R, B> TypedBatch<K, V, R, DynSpine<B>>
where B: DynBatch, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source

pub fn ro_snapshot(&self) -> TypedBatch<K, V, R, DynSpineSnapshot<B>>

Trait Implementations§

Source§

impl<K, V, R, B> AddAssignByRef for TypedBatch<K, V, R, B>

Source§

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

Source§

impl<K, V, R, B> AddByRef for TypedBatch<K, V, R, B>
where B: DynBatchReaderWithSnapshot + AddByRef, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

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

Source§

impl<K, V, R, B> BatchReader for TypedBatch<K, V, R, B>
where B: DynBatchReaderWithSnapshot, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

type Inner = B

Source§

type IntoBatch = <B as WithSnapshot>::Batch

Any batch reader can be decomposed into a list of batches. This type represents the type of the batches: Read more
Source§

type Key = K

Concrete key type.
Source§

type Val = V

Concrete value type.
Source§

type R = R

Concrete weight typ.
Source§

type Time = <B as BatchReader>::Time

Source§

type DynK = <B as BatchReader>::Key

Dynamic key type (e.g., DynData).
Source§

type DynV = <B as BatchReader>::Val

Dynamic value typ, (e.g., DynData).
Source§

type DynR = <B as BatchReader>::R

Dynamic weight type (e.g., DynZWeight).
Source§

fn inner(&self) -> &Self::Inner

Extract the dynamically typed batch.
Source§

fn inner_mut(&mut self) -> &mut Self::Inner

Source§

fn into_inner(self) -> Self::Inner

Drop the statically typed wrapper and return the inner dynamic batch type.
Source§

fn from_inner(inner: Self::Inner) -> Self

Create a statically typed wrapper around inner.
Source§

fn stream_inner<C: Clone>(stream: &Stream<C, Self>) -> Stream<C, B>

Convert a stream of batches of statically typed batches of type Self into a stream of dynamically typed batches Self::Inner batches. Read more
Source§

fn stream_from_inner<C: Clone>( stream: &Stream<C, Self::Inner>, ) -> Stream<C, Self>

Convert a stream of dynamically typed batches of type Self::Inner into a stream of statically typed batches of type Self.
Source§

fn into_dyn_batches(self) -> Vec<Arc<Self::IntoBatch>>

Consume self and returns the list of dynamically typed batches comprising it.
Source§

fn into_dyn_snapshot(self) -> DynSpineSnapshot<Self::IntoBatch>

Convert self into a spine snapshot.
Source§

fn into_batches( self, ) -> Vec<Arc<TypedBatch<Self::Key, Self::Val, Self::R, Self::IntoBatch>>>

Consume self and returns the list of statically typed batches comprising it.
Source§

fn dyn_batches(&self) -> Vec<Arc<Self::IntoBatch>>

Returns the list of dynamically typed batches comprising self.
Source§

fn batches( &self, ) -> Vec<Arc<TypedBatch<Self::Key, Self::Val, Self::R, Self::IntoBatch>>>

Returns the list of statically typed batches comprising self.
Source§

fn dyn_snapshot(&self) -> DynSpineSnapshot<Self::IntoBatch>

Assemble batches from self into a spine snapshot.
Source§

fn factories() -> <Self::Inner as DynBatchReader>::Factories

Factories for Self::Inner.
Source§

fn into_batch_factories() -> <Self::IntoBatch as DynBatchReader>::Factories

Source§

impl<K, V, R, B> Checkpoint for TypedBatch<K, V, R, B>
where B: Checkpoint, K: DBData, V: DBData, R: DBWeight,

Source§

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

Source§

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

Source§

impl<K: Clone, V: Clone, R: Clone, B: Clone> Clone for TypedBatch<K, V, R, B>

Source§

fn clone(&self) -> TypedBatch<K, V, R, B>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<K, V, R, B> Debug for TypedBatch<K, V, R, B>
where B: Debug,

Source§

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

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

impl<K, V, R, B> Default for TypedBatch<K, V, R, B>
where B: DynBatch, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<K, V, R, B> Deref for TypedBatch<K, V, R, B>

Source§

type Target = B

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<K, V, R, B> DerefMut for TypedBatch<K, V, R, B>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<K: Eq, V: Eq, R: Eq, B: Eq> Eq for TypedBatch<K, V, R, B>

Source§

impl<K, V, R, B> HasZero for TypedBatch<K, V, R, B>
where B: DynBatch<Time = ()>, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool

Source§

impl<K, V, R, B> Neg for TypedBatch<K, V, R, B>
where B: DynBatchReader + Neg<Output = B>, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

type Output = TypedBatch<K, V, R, B>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<K, V, R, B> NegByRef for TypedBatch<K, V, R, B>
where B: DynBatchReaderWithSnapshot + NegByRef, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

fn neg_by_ref(&self) -> Self

Source§

impl<K, V, R, B> NumEntries for TypedBatch<K, V, R, B>
where B: DynBatchReader, K: DBData + Erase<B::Key>, V: DBData + Erase<B::Val>, R: DBWeight + Erase<B::R>,

Source§

const CONST_NUM_ENTRIES: Option<usize> = B::CONST_NUM_ENTRIES

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<K, V, R, B, B2> PartialEq<TypedBatch<K, V, R, B2>> for TypedBatch<K, V, R, B>
where B: PartialEq<B2>,

Source§

fn eq(&self, other: &TypedBatch<K, V, R, B2>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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, V, R, B> SizeOf for TypedBatch<K, V, R, B>
where B: SizeOf, PhantomData<fn(&K, &V, &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<R, T> SourceOperator<TypedBatch<T, (), i64, FallbackWSet<dyn Data, dyn WeightTyped<Type = i64>>>> for CsvSource<R, T>
where T: DBData + for<'de> Deserialize<'de> + 'static, R: Read + 'static,

Source§

async fn eval(&mut self) -> OrdZSet<T>

Yield the next value.

Auto Trait Implementations§

§

impl<K, V, R, B> Freeze for TypedBatch<K, V, R, B>
where B: Freeze,

§

impl<K, V, R, B> RefUnwindSafe for TypedBatch<K, V, R, B>
where B: RefUnwindSafe,

§

impl<K, V, R, B> Send for TypedBatch<K, V, R, B>
where B: Send,

§

impl<K, V, R, B> Sync for TypedBatch<K, V, R, B>
where B: Sync,

§

impl<K, V, R, B> Unpin for TypedBatch<K, V, R, B>
where B: Unpin,

§

impl<K, V, R, B> UnsafeUnpin for TypedBatch<K, V, R, B>
where B: UnsafeUnpin,

§

impl<K, V, R, B> UnwindSafe for TypedBatch<K, V, R, B>
where B: UnwindSafe,

Blanket Implementations§

Source§

impl<T, A, P> Access<T> for P
where A: Access<T> + ?Sized, P: Deref<Target = A>,

Source§

type Guard = <A as Access<T>>::Guard

A guard object containing the value and keeping it alive. Read more
Source§

fn load(&self) -> <P as Access<T>>::Guard

The loading method. Read more
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> 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> Clonable for T
where T: Clone + Default,

Source§

unsafe fn raw_clone_to(&self, dst: *mut u8)

Clone self into dst. Read more
Source§

unsafe fn raw_move_to(&mut self, dst: *mut u8)

Move the contents of self into dst, replacing the contents of self with Self::default(). Read more
Source§

unsafe fn raw_clone_from(&mut self, src: *const u8)

Clone src into self. 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<R> CryptoRng for R
where R: TryCryptoRng<Error = Infallible> + ?Sized,

Source§

impl<T> CryptoRng for T
where T: DerefMut, <T as Deref>::Target: CryptoRng,

Source§

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

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, A> DynAccess<T> for A
where A: Access<T>, <A as Access<T>>::Guard: 'static,

Source§

fn load(&self) -> DynGuard<T>

The equivalent of Access::load.
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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Formattable for T
where T: Deref, <T as Deref>::Target: Formattable,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GroupValue for T
where T: MonoidValue + Neg<Output = T> + NegByRef,

Source§

impl<Z> IndexedZSet for Z
where Z: Batch<R = i64, DynR = dyn WeightTyped<Type = i64>, Time = ()>, <Z as Batch>::InnerBatch: IndexedZSet,

Source§

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

Source§

fn iter(&self) -> impl Iterator<Item = (Self::Key, Self::Val, ZWeight)> + '_

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> MonoidValue for T

Source§

impl<T> Parsable for T
where T: Deref, <T as Deref>::Target: Parsable,

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: Sized + 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: Sized + 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, P> Resource for T
where T: DerefMut<Target = Path<P>>, P: ResourcePath,

Source§

type Path = P

Type of resource’s path returned in resource_path.
Source§

fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

Source§

impl<R> Rng for R
where R: TryRng<Error = Infallible> + ?Sized,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32.
Source§

fn next_u64(&mut self) -> u64

Return the next random u64.
Source§

fn fill_bytes(&mut self, dst: &mut [u8])

Fill dest with random data. Read more
Source§

impl<R> Rng for R
where R: RngCore + ?Sized,

Source§

fn random<T>(&mut self) -> T

Return a random value via the StandardUniform distribution. Read more
Source§

fn random_iter<T>(self) -> Iter<StandardUniform, Self, T>

Return an iterator over random variates Read more
Source§

fn random_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

Generate a random value in the given range. Read more
Source§

fn random_bool(&mut self, p: f64) -> bool

Return a bool with a probability p of being true. Read more
Source§

fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool

Return a bool with a probability of numerator/denominator of being true. Read more
Source§

fn sample<T, D>(&mut self, distr: D) -> T
where D: Distribution<T>,

Sample a new value, using the given distribution. Read more
Source§

fn sample_iter<T, D>(self, distr: D) -> Iter<D, Self, T>
where D: Distribution<T>, Self: Sized,

Create an iterator that generates values using the given distribution. Read more
Source§

fn fill<T>(&mut self, dest: &mut T)
where T: Fill + ?Sized,

Fill any type implementing Fill with random data Read more
Source§

fn gen<T>(&mut self) -> T

👎Deprecated since 0.9.0:

Renamed to random to avoid conflict with the new gen keyword in Rust 2024.

Alias for Rng::random.
Source§

fn gen_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

👎Deprecated since 0.9.0:

Renamed to random_range

Source§

fn gen_bool(&mut self, p: f64) -> bool

👎Deprecated since 0.9.0:

Renamed to random_bool

Alias for Rng::random_bool.
Source§

fn gen_ratio(&mut self, numerator: u32, denominator: u32) -> bool

👎Deprecated since 0.9.0:

Renamed to random_ratio

Source§

impl<R> RngCore for R
where R: Rng,

Source§

impl<T> RngCore for T
where T: DerefMut, <T as Deref>::Target: RngCore,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32. Read more
Source§

fn next_u64(&mut self) -> u64

Return the next random u64. Read more
Source§

fn fill_bytes(&mut self, dst: &mut [u8])

Fill dest with random data. Read more
Source§

impl<R> RngExt for R
where R: Rng + ?Sized,

Source§

fn random<T>(&mut self) -> T

Return a random value via the StandardUniform distribution. Read more
Source§

fn random_iter<T>(self) -> Iter<StandardUniform, Self, T>

Return an iterator over random variates Read more
Source§

fn random_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

Generate a random value in the given range. Read more
Source§

fn random_bool(&mut self, p: f64) -> bool

Return a bool with a probability p of being true. Read more
Source§

fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool

Return a bool with a probability of numerator/denominator of being true. Read more
Source§

fn sample<T, D>(&mut self, distr: D) -> T
where D: Distribution<T>,

Sample a new value, using the given distribution. Read more
Source§

fn sample_iter<T, D>(self, distr: D) -> Iter<D, Self, T>
where D: Distribution<T>, Self: Sized,

Create an iterator that generates values using the given distribution. Read more
Source§

fn fill<T>(&mut self, dest: &mut [T])
where T: Fill,

Fill any type implementing Fill with random data Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

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<R> TryCryptoRng for R
where R: DerefMut, <R as Deref>::Target: TryCryptoRng,

Source§

impl<R> TryCryptoRng for R
where R: CryptoRng + ?Sized,

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<R> TryRng for R
where R: DerefMut, <R as Deref>::Target: TryRng,

Source§

type Error = <<R as Deref>::Target as TryRng>::Error

The type returned in the event of a RNG error. Read more
Source§

fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>

Return the next random u32.
Source§

fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>

Return the next random u64.
Source§

fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>

Fill dst entirely with random data.
Source§

impl<R> TryRngCore for R
where R: TryRng,

Source§

type Error = <R as TryRng>::Error

👎Deprecated since 0.10.0:

use TryRng instead

Error type.
Source§

impl<R> TryRngCore for R
where R: RngCore + ?Sized,

Source§

type Error = Infallible

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

fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>

Return the next random u32.
Source§

fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>

Return the next random u64.
Source§

fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>

Fill dest entirely with random data.
Source§

fn unwrap_err(self) -> UnwrapErr<Self>
where Self: Sized,

Wrap RNG with the UnwrapErr wrapper.
Source§

fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>

Wrap RNG with the UnwrapMut wrapper.
Source§

fn read_adapter(&mut self) -> RngReadAdapter<'_, Self>
where Self: Sized,

Convert an RngCore to a RngReadAdapter.
Source§

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

Source§

fn vzip(self) -> V

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> ZSet for Z
where Z: IndexedZSet<Val = (), DynV = dyn DataTyped<Type = ()>>,

Source§

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