pub struct TeloidStore<D, S, T, ST, SYM, VS, VT>where
D: Datable + Clone,
S: Spatial<VS> + Clone,
T: Temporal<VT> + Clone,
ST: SpaceTemporal<VS, VT> + Clone,
SYM: Symbolic + Clone,
VS: Clone,
VT: Clone,{ /* private fields */ }Expand description
A generic, in-memory storage for Teloids, indexed by their unique ID.
Implementations§
Source§impl<D, S, T, ST, SYM, VS, VT> TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> TeloidStore<D, S, T, ST, SYM, VS, VT>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Trait Implementations§
Source§impl<D, S, T, ST, SYM, VS, VT> Clone for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Clone for TeloidStore<D, S, T, ST, SYM, VS, VT>
Source§fn clone(&self) -> TeloidStore<D, S, T, ST, SYM, VS, VT>
fn clone(&self) -> TeloidStore<D, S, T, ST, SYM, VS, VT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D, S, T, ST, SYM, VS, VT> Debug for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Debug for TeloidStore<D, S, T, ST, SYM, VS, VT>
Source§impl<D, S, T, ST, SYM, VS, VT> Default for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Default for TeloidStore<D, S, T, ST, SYM, VS, VT>
Source§fn default() -> TeloidStore<D, S, T, ST, SYM, VS, VT>
fn default() -> TeloidStore<D, S, T, ST, SYM, VS, VT>
Returns the “default value” for a type. Read more
Source§impl<D, S, T, ST, SYM, VS, VT> TeloidStorable<D, S, T, ST, SYM, VS, VT> for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> TeloidStorable<D, S, T, ST, SYM, VS, VT> for TeloidStore<D, S, T, ST, SYM, VS, VT>
Source§fn insert(
&mut self,
teloid: Teloid<D, S, T, ST, SYM, VS, VT>,
) -> Option<Teloid<D, S, T, ST, SYM, VS, VT>>
fn insert( &mut self, teloid: Teloid<D, S, T, ST, SYM, VS, VT>, ) -> Option<Teloid<D, S, T, ST, SYM, VS, VT>>
Inserts a Teloid into the store.
If the store did not have this ID present, None is returned.
If the store did have this ID present, the value is updated, and the old
value is returned.
§Arguments
teloid- TheTeloidto insert.
§Returns
An Option containing the old Teloid if the ID already existed, otherwise None.
Source§fn update(
&mut self,
teloid: Teloid<D, S, T, ST, SYM, VS, VT>,
) -> Option<Teloid<D, S, T, ST, SYM, VS, VT>>
fn update( &mut self, teloid: Teloid<D, S, T, ST, SYM, VS, VT>, ) -> Option<Teloid<D, S, T, ST, SYM, VS, VT>>
Updates a Teloid in the store. This is an alias for insert.
If the store did not have this ID present, None is returned.
If the store did have this ID present, the value is updated, and the old
value is returned.
§Arguments
teloid- TheTeloidto insert/update.
§Returns
An Option containing the old Teloid if the ID already existed, otherwise None.
Source§fn contains_key(&self, id: &TeloidID) -> bool
fn contains_key(&self, id: &TeloidID) -> bool
Auto Trait Implementations§
impl<D, S, T, ST, SYM, VS, VT> Freeze for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> RefUnwindSafe for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Send for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Sync for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Unpin for TeloidStore<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> UnwindSafe for TeloidStore<D, S, T, ST, SYM, VS, VT>
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