pub struct ObservedWorld { /* private fields */ }Expand description
Immutable observed facts from which a selector creates a bounded view.
Implementations§
Source§impl ObservedWorld
impl ObservedWorld
Sourcepub fn new(
facts: impl IntoIterator<Item = (FactId, ObservedFact)>,
) -> Result<Self, ProjectionError>
pub fn new( facts: impl IntoIterator<Item = (FactId, ObservedFact)>, ) -> Result<Self, ProjectionError>
Builds a world and refuses duplicate fact identities.
Trait Implementations§
Source§impl Clone for ObservedWorld
impl Clone for ObservedWorld
Source§fn clone(&self) -> ObservedWorld
fn clone(&self) -> ObservedWorld
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObservedWorld
impl Debug for ObservedWorld
Source§impl Default for ObservedWorld
impl Default for ObservedWorld
Source§fn default() -> ObservedWorld
fn default() -> ObservedWorld
Returns the “default value” for a type. Read more
impl Eq for ObservedWorld
Source§impl PartialEq for ObservedWorld
impl PartialEq for ObservedWorld
impl StructuralPartialEq for ObservedWorld
Auto Trait Implementations§
impl Freeze for ObservedWorld
impl RefUnwindSafe for ObservedWorld
impl Send for ObservedWorld
impl Sync for ObservedWorld
impl Unpin for ObservedWorld
impl UnsafeUnpin for ObservedWorld
impl UnwindSafe for ObservedWorld
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