pub struct Set<'db, 'tbl, S, C>where
S: Format,
C: Savepointable,{ /* private fields */ }Expand description
Deterministic store set.
Implementations§
Source§impl<S, C> Set<'static, 'static, S, C>where
S: Format,
C: Savepointable,
impl<S, C> Set<'static, 'static, S, C>where
S: Format,
C: Savepointable,
Source§impl<'db, 'tbl, S, C> Set<'db, 'tbl, S, C>where
S: Format,
C: Savepointable,
impl<'db, 'tbl, S, C> Set<'db, 'tbl, S, C>where
S: Format,
C: Savepointable,
pub fn open_with_config( connection: C, config: Config<'db, 'tbl>, ) -> Result<Self, OpenError>
Sourcepub fn unchecked_open_with_config(
connection: C,
config: Config<'db, 'tbl>,
) -> Self
pub fn unchecked_open_with_config( connection: C, config: Config<'db, 'tbl>, ) -> Self
Open a set without creating it or checking if it exists. This is safe if you call a safe open in (or under) the same transaction or savepoint beforehand.
pub fn insert(&mut self, value: &S::In) -> Result<bool, Error<S>>
pub fn contains(&mut self, value: &S::In) -> Result<bool, Error<S>>
pub fn remove(&mut self, value: &S::In) -> Result<bool, Error<S>>
pub fn clear(&mut self) -> Result<(), Error<S>>
pub fn first(&mut self) -> Result<Option<S::Out>, Error<S>>
pub fn last(&mut self) -> Result<Option<S::Out>, Error<S>>
pub fn len(&mut self) -> Result<u64, Error<S>>
pub fn is_empty(&mut self) -> Result<bool, Error<S>>
pub fn iter(&mut self) -> Result<Iter<'db, 'tbl, S, Savepoint<'_>>, Error<S>>
Auto Trait Implementations§
impl<'db, 'tbl, S, C> Freeze for Set<'db, 'tbl, S, C>where
C: Freeze,
impl<'db, 'tbl, S, C> RefUnwindSafe for Set<'db, 'tbl, S, C>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<'db, 'tbl, S, C> Send for Set<'db, 'tbl, S, C>
impl<'db, 'tbl, S, C> Sync for Set<'db, 'tbl, S, C>
impl<'db, 'tbl, S, C> Unpin for Set<'db, 'tbl, S, C>
impl<'db, 'tbl, S, C> UnwindSafe for Set<'db, 'tbl, S, C>where
C: UnwindSafe,
S: UnwindSafe,
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