pub struct Nested<T: EsEntity> { /* private fields */ }Implementations§
Source§impl<T: EsEntity> Nested<T>
impl<T: EsEntity> Nested<T>
pub fn add_new(&mut self, new: <T as EsEntity>::New) -> &<T as EsEntity>::New
pub fn len_new(&self) -> usize
pub fn find_new<P>(&self, predicate: P) -> Option<&<T as EsEntity>::New>
pub fn find_map_new<B, F>(&self, f: F) -> Option<B>
pub fn new_entities_mut(&mut self) -> &mut Vec<<T as EsEntity>::New>
pub fn get_persisted( &self, id: &<<T as EsEntity>::Event as EsEvent>::EntityId, ) -> Option<&T>
pub fn get_persisted_mut( &mut self, id: &<<T as EsEntity>::Event as EsEvent>::EntityId, ) -> Option<&mut T>
pub fn find_persisted<P>(&self, predicate: P) -> Option<&T>
pub fn find_map_persisted<B, F>(&self, f: F) -> Option<B>
pub fn find_persisted_mut<P>(&mut self, predicate: P) -> Option<&mut T>
pub fn len_persisted(&self) -> usize
pub fn iter_persisted( &self, ) -> Values<'_, <<T as EsEntity>::Event as EsEvent>::EntityId, T>
pub fn iter_persisted_mut( &mut self, ) -> ValuesMut<'_, <<T as EsEntity>::Event as EsEvent>::EntityId, T>
pub fn load(&mut self, entities: impl IntoIterator<Item = T>)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Nested<T>
impl<T> RefUnwindSafe for Nested<T>where
<T as EsEntity>::New: RefUnwindSafe,
<<T as EsEntity>::Event as EsEvent>::EntityId: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Nested<T>
impl<T> Sync for Nested<T>
impl<T> Unpin for Nested<T>
impl<T> UnwindSafe for Nested<T>where
<<T as EsEntity>::Event as EsEvent>::EntityId: UnwindSafe,
T: UnwindSafe,
<T as EsEntity>::New: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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