Enum mz_timely_util::containers::stack::StackWrapper
source · pub enum StackWrapper<T: Columnation> {
Legacy(TimelyStack<T>),
Chunked(ChunkedStack<T>),
}
Expand description
A runtime-configurable wrapper around timely stacks and chunked stacks.
Variants§
Legacy(TimelyStack<T>)
Chunked(ChunkedStack<T>)
Implementations§
source§impl<T: Columnation> StackWrapper<T>
impl<T: Columnation> StackWrapper<T>
Trait Implementations§
source§impl<T: Ord + Columnation + Clone + 'static> BatchContainer for StackWrapper<T>
impl<T: Ord + Columnation + Clone + 'static> BatchContainer for StackWrapper<T>
§type ReadItem<'a> = &'a <StackWrapper<T> as BatchContainer>::Owned
type ReadItem<'a> = &'a <StackWrapper<T> as BatchContainer>::Owned
The type that can be read back out of the container.
source§fn with_capacity(size: usize) -> Self
fn with_capacity(size: usize) -> Self
Creates a new container with sufficient capacity.
source§fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
fn merge_capacity(cont1: &Self, cont2: &Self) -> Self
Creates a new container with sufficient capacity.
source§fn reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
fn reborrow<'b, 'a: 'b>(item: Self::ReadItem<'a>) -> Self::ReadItem<'b>
Converts a read item into one with a narrower lifetime.
source§fn index(&self, index: usize) -> Self::ReadItem<'_>
fn index(&self, index: usize) -> Self::ReadItem<'_>
Reference to the element at this position.
source§impl<T: Clone + Columnation> Clone for StackWrapper<T>
impl<T: Clone + Columnation> Clone for StackWrapper<T>
source§fn clone(&self) -> StackWrapper<T>
fn clone(&self) -> StackWrapper<T>
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<T: Clone + Columnation + 'static> Container for StackWrapper<T>
impl<T: Clone + Columnation + 'static> Container for StackWrapper<T>
§type ItemRef<'a> = &'a T
where
Self: 'a
type ItemRef<'a> = &'a T where Self: 'a
The type of elements when reading non-destructively from the container.
source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Determine if the container contains any elements, corresponding to
len() == 0
.source§fn clear(&mut self)
fn clear(&mut self)
Remove all contents from
self
while retaining allocated memory.
After calling clear
, is_empty
must return true
and len
0.§type Iter<'a> = Either<<TimelyStack<T> as Container>::Iter<'a>, <ChunkedStack<T> as Container>::Iter<'a>>
type Iter<'a> = Either<<TimelyStack<T> as Container>::Iter<'a>, <ChunkedStack<T> as Container>::Iter<'a>>
Iterator type when reading from the container.
source§fn iter(&self) -> Self::Iter<'_>
fn iter(&self) -> Self::Iter<'_>
Returns an iterator that reads the contents of this container.
§type DrainIter<'a> = Either<<TimelyStack<T> as Container>::DrainIter<'a>, <ChunkedStack<T> as Container>::DrainIter<'a>>
type DrainIter<'a> = Either<<TimelyStack<T> as Container>::DrainIter<'a>, <ChunkedStack<T> as Container>::DrainIter<'a>>
Iterator type when draining the container.
source§impl<T: Columnation> Default for StackWrapper<T>
impl<T: Columnation> Default for StackWrapper<T>
source§impl<'de, T> Deserialize<'de> for StackWrapper<T>where
T: Deserialize<'de> + Columnation,
impl<'de, T> Deserialize<'de> for StackWrapper<T>where
T: Deserialize<'de> + Columnation,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Columnation + ToOwned<Owned = T> + 'static> PushInto<&T> for StackWrapper<T>
impl<T: Columnation + ToOwned<Owned = T> + 'static> PushInto<&T> for StackWrapper<T>
source§impl<T: Columnation + ToOwned<Owned = T> + 'static> PushInto<T> for StackWrapper<T>
impl<T: Columnation + ToOwned<Owned = T> + 'static> PushInto<T> for StackWrapper<T>
source§impl<T> Serialize for StackWrapper<T>where
T: Serialize + Columnation,
impl<T> Serialize for StackWrapper<T>where
T: Serialize + Columnation,
source§impl<T: Clone + Columnation + 'static> SizableContainer for StackWrapper<T>
impl<T: Clone + Columnation + 'static> SizableContainer for StackWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for StackWrapper<T>
impl<T> RefUnwindSafe for StackWrapper<T>
impl<T> Send for StackWrapper<T>
impl<T> Sync for StackWrapper<T>
impl<T> Unpin for StackWrapper<T>
impl<T> UnwindSafe for StackWrapper<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.