pub struct PlaceQuery<'a> { /* private fields */ }Expand description
Query handle for a Place node in the chronicle graph.
Provides methods to inspect events at this location, actors present at a point in time, and computed status.
Implementations§
Source§impl<'a> PlaceQuery<'a>
impl<'a> PlaceQuery<'a>
Sourcepub fn events_during(&self, range: RangeInclusive<i32>) -> Vec<&'a Event>
pub fn events_during(&self, range: RangeInclusive<i32>) -> Vec<&'a Event>
Events at this place filtered by time range.
Sourcepub fn actors_present_at(&self, year: i32) -> Vec<&'a Actor>
pub fn actors_present_at(&self, year: i32) -> Vec<&'a Actor>
All actors who participated in events at this place during a given year.
Auto Trait Implementations§
impl<'a> Freeze for PlaceQuery<'a>
impl<'a> RefUnwindSafe for PlaceQuery<'a>
impl<'a> Send for PlaceQuery<'a>
impl<'a> Sync for PlaceQuery<'a>
impl<'a> Unpin for PlaceQuery<'a>
impl<'a> UnsafeUnpin for PlaceQuery<'a>
impl<'a> UnwindSafe for PlaceQuery<'a>
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