pub struct IndexedTuples { /* private fields */ }Expand description
A comprehension’s tuples addressed by position: each tuple is
computed from its position when asked for (evaluate_indexed).
Implementations§
Source§impl IndexedTuples
impl IndexedTuples
Sourcepub fn get(&self, i: u64) -> Option<RuntimeTuple>
pub fn get(&self, i: u64) -> Option<RuntimeTuple>
The tuple at position i, or None past the end.
Sourcepub fn iter(&self) -> impl Iterator<Item = RuntimeTuple> + '_
pub fn iter(&self) -> impl Iterator<Item = RuntimeTuple> + '_
Every tuple, in order.
Sourcepub fn to_vec(&self) -> Vec<RuntimeTuple>
pub fn to_vec(&self) -> Vec<RuntimeTuple>
Every tuple, computed now.
Trait Implementations§
Source§impl Clone for IndexedTuples
impl Clone for IndexedTuples
Auto Trait Implementations§
impl !RefUnwindSafe for IndexedTuples
impl !UnwindSafe for IndexedTuples
impl Forget for IndexedTuples
impl Freeze for IndexedTupleswhere
*const u8 is !null: Freeze,
PhantomData<Vec<(String, Value)>>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<Indexed>: Freeze,
PhantomData<u64>: Freeze,
*const Indexed is !null: Freeze,
impl Move for IndexedTuples
impl Send for IndexedTupleswhere
RawVecInner: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<Value>: Send,
BoxRaw<dyn ReflectedValue>: Send,
Arc<dyn Any + Sync + Send>: Send,
Arc<OrdinalSet>: Send,
Arc<PredicateForms>: Send,
Arc<RecordForms>: Send,
SliceArc<f32>: Send,
SliceArc<i32>: Send,
SliceArc<f64>: Send,
SliceArc<i64>: Send,
SliceArc<f16>: Send,
SliceArc<i16>: Send,
SliceArc<i8>: Send,
BoxRaw<Indexed>: Send,
impl Sync for IndexedTupleswhere
RawVecInner: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<Value>: Sync,
BoxRaw<dyn ReflectedValue>: Sync,
Arc<dyn Any + Sync + Send>: Sync,
Arc<OrdinalSet>: Sync,
Arc<PredicateForms>: Sync,
Arc<RecordForms>: Sync,
SliceArc<f32>: Sync,
SliceArc<i32>: Sync,
SliceArc<f64>: Sync,
SliceArc<i64>: Sync,
SliceArc<f16>: Sync,
SliceArc<i16>: Sync,
SliceArc<i8>: Sync,
BoxRaw<Indexed>: Sync,
impl Unpin for IndexedTupleswhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<Value>: Unpin,
Box<dyn ReflectedValue>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
Arc<OrdinalSet>: Unpin,
Arc<PredicateForms>: Unpin,
Arc<RecordForms>: Unpin,
*const f32: Unpin,
*const i32: Unpin,
*const f64: Unpin,
*const i64: Unpin,
*const f16: Unpin,
*const i16: Unpin,
*const i8: Unpin,
Box<Indexed>: Unpin,
impl UnsafeUnpin for IndexedTupleswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Vec<(String, Value)>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<Indexed>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
*const Indexed is !null: UnsafeUnpin,
Blanket Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more