pub struct Arranged;Expand description
Ordered storage: a map from id to { k: order key, v: value }, as a
Collection is stored.
Trait Implementations§
impl Copy for Arranged
impl Eq for Arranged
Source§impl ItemStorage for Arranged
impl ItemStorage for Arranged
Source§const NAME: &'static str = "arranged items"
const NAME: &'static str = "arranged items"
What a stored value that is not of this storage is called in errors.
fn load<T: Model + Identified>( doc: &Doc, map: &ObjId, ) -> Result<Vec<T>, ModelError>
Source§fn store<T: Model + Identified>(
items: &[T],
doc: &mut Doc,
slot: Slot<'_>,
) -> Result<(), ModelError>
fn store<T: Model + Identified>( items: &[T], doc: &mut Doc, slot: Slot<'_>, ) -> Result<(), ModelError>
Write
items into slot.Source§fn refresh<T: Model + Identified>(
items: &mut Vec<T>,
doc: &Doc,
map: &ObjId,
delta: &Delta,
) -> Result<(), ModelError>
fn refresh<T: Model + Identified>( items: &mut Vec<T>, doc: &Doc, map: &ObjId, delta: &Delta, ) -> Result<(), ModelError>
Bring
items up to date after delta; the default reads them again.impl StructuralPartialEq for Arranged
Auto Trait Implementations§
impl Forget for Arranged
impl Freeze for Arranged
impl Move for Arranged
impl RefUnwindSafe for Arranged
impl Send for Arranged
impl Sync for Arranged
impl Unpin for Arranged
impl UnsafeUnpin for Arranged
impl UnwindSafe for Arranged
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§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