pub struct Pool { /* private fields */ }Expand description
Values the records of one cache file share, each written once, by the digest of its text: a model’s faces, which every revision of the model that kept them holds alike.
Implementations§
Source§impl Pool
impl Pool
Sourcepub fn put<V: Serialize>(&mut self, value: &V) -> GeopResult<String>
pub fn put<V: Serialize>(&mut self, value: &V) -> GeopResult<String>
Puts value, and gives what it is taken by (Pool::get).
Sourcepub fn get<V: DeserializeOwned>(&self, key: &str) -> GeopResult<V>
pub fn get<V: DeserializeOwned>(&self, key: &str) -> GeopResult<V>
The value put as key.
What read reads of the value put as key, read once for every
record that reads it so: what many records hold alike — the drawing
of a part placed a thousand times — is one value in memory. read
reads the same of the same key, as a V.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Pool
impl !RefUnwindSafe for Pool
impl !Send for Pool
impl !Sync for Pool
impl !UnwindSafe for Pool
impl Unpin for Pool
impl UnsafeUnpin for Pool
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