pub struct SmallSetData { /* private fields */ }Expand description
Inline packed set storage. 24 bytes total — see module docs for layout.
use kevy_store::{Store, Value};
let mut s = Store::new();
s.sadd(b"s", &[b"x".as_slice()])?;
s.snapshot_each(|_, v, _| {
let Value::SmallSetInline(m) = v else { panic!("a one-member set stays inline") };
assert!(m.contains(b"x"));
assert!(!m.contains(b"y"));
});Implementations§
Source§impl SmallSetData
impl SmallSetData
Trait Implementations§
Source§impl Clone for SmallSetData
impl Clone for SmallSetData
Auto Trait Implementations§
impl Freeze for SmallSetData
impl RefUnwindSafe for SmallSetData
impl Send for SmallSetData
impl Sync for SmallSetData
impl Unpin for SmallSetData
impl UnsafeUnpin for SmallSetData
impl UnwindSafe for SmallSetData
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