Struct sqlite_collections::ds::set::Set
source · pub struct Set<'db, 'tbl, S, C>where
S: Serializer,
C: Savepointable,{ /* private fields */ }Expand description
Deterministic store set.
Implementations§
source§impl<S, C> Set<'static, 'static, S, C>where
S: Serializer,
C: Savepointable,
impl<S, C> Set<'static, 'static, S, C>where
S: Serializer,
C: Savepointable,
source§impl<'db, 'tbl, S, C> Set<'db, 'tbl, S, C>where
S: Serializer,
C: Savepointable,
impl<'db, 'tbl, S, C> Set<'db, 'tbl, S, C>where
S: Serializer,
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::TargetBorrowed) -> Result<bool, Error<S>>
pub fn contains(&mut self, value: &S::TargetBorrowed) -> Result<bool, Error<S>>
pub fn remove<Q>(&mut self, value: &S::TargetBorrowed) -> Result<bool, Error<S>>
pub fn clear(&mut self) -> Result<(), Error<S>>
pub fn first(&mut self) -> Result<Option<S::Target>, Error<S>>
pub fn last(&mut self) -> Result<Option<S::Target>, Error<S>>
pub fn len(&mut self) -> Result<u64, Error<S>>
pub fn iter(&mut self) -> Result<Iter<'db, 'tbl, S, Savepoint<'_>>, Error<S>>
Auto Trait Implementations§
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