pub struct FlatLayout<K, V, T, R> { /* private fields */ }
Expand description

A layout based on flat containers.

Trait Implementations§

source§

impl<K, V, T, R> Layout for FlatLayout<K, V, T, R>
where K: Region + Push<<K as Region>::Owned> + for<'a> Push<<K as Region>::ReadItem<'a>> + 'static, V: Region + Push<<V as Region>::Owned> + for<'a> Push<<V as Region>::ReadItem<'a>> + 'static, T: Region + Push<<T as Region>::Owned> + for<'a> Push<<T as Region>::ReadItem<'a>> + 'static, R: Region + Push<<R as Region>::Owned> + for<'a> Push<<R as Region>::ReadItem<'a>> + 'static, K::Owned: Ord + Clone + 'static, V::Owned: Ord + Clone + 'static, T::Owned: Ord + Clone + Lattice + Timestamp + 'static, R::Owned: Ord + Semigroup + 'static, for<'a> K::ReadItem<'a>: Copy + Ord, for<'a> V::ReadItem<'a>: Copy + Ord, for<'a> T::ReadItem<'a>: Copy + Ord, for<'a> R::ReadItem<'a>: Copy + Ord,

§

type Target = FlatLayout<K, V, T, R>

The represented update.
§

type KeyContainer = FlatStack<K>

Container for update keys.
§

type ValContainer = FlatStack<V>

Container for update vals.
§

type TimeContainer = FlatStack<T>

Container for times.
§

type DiffContainer = FlatStack<R>

Container for diffs.
§

type OffsetContainer = OffsetList

Container for offsets.
source§

impl<K, V, T, R> Update for FlatLayout<K, V, T, R>
where K: Region, V: Region, T: Region, R: Region, K::Owned: Ord + Clone + 'static, V::Owned: Ord + Clone + 'static, T::Owned: Ord + Clone + Lattice + Timestamp + 'static, R::Owned: Ord + Semigroup + 'static,

§

type Key = <K as Region>::Owned

Key by which data are grouped.
§

type Val = <V as Region>::Owned

Values associated with the key.
§

type Time = <T as Region>::Owned

Time at which updates occur.
§

type Diff = <R as Region>::Owned

Way in which updates occur.

Auto Trait Implementations§

§

impl<K, V, T, R> Freeze for FlatLayout<K, V, T, R>

§

impl<K, V, T, R> RefUnwindSafe for FlatLayout<K, V, T, R>

§

impl<K, V, T, R> Send for FlatLayout<K, V, T, R>
where K: Send, V: Send, T: Send, R: Send,

§

impl<K, V, T, R> Sync for FlatLayout<K, V, T, R>
where K: Sync, V: Sync, T: Sync, R: Sync,

§

impl<K, V, T, R> Unpin for FlatLayout<K, V, T, R>
where K: Unpin, V: Unpin, T: Unpin, R: Unpin,

§

impl<K, V, T, R> UnwindSafe for FlatLayout<K, V, T, 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> 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
source§

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

§

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>,

§

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.