pub struct TableDefinition<'a, K: Key + 'static, V: Value + 'static> { /* private fields */ }
Expand description
Defines the name and types of a table
A TableDefinition
should be opened for use by calling ReadTransaction::open_table
or WriteTransaction::open_table
Note that the lifetime of the K
and V
type parameters does not impact the lifetimes of the data
that is stored or retreived from the table
Implementations§
Trait Implementations§
Source§impl<'a, K: Key + 'static, V: Value + 'static> TableHandle for TableDefinition<'a, K, V>
impl<'a, K: Key + 'static, V: Value + 'static> TableHandle for TableDefinition<'a, K, V>
impl<'a, K: Key + 'static, V: Value + 'static> Copy for TableDefinition<'a, K, V>
Auto Trait Implementations§
impl<'a, K, V> Freeze for TableDefinition<'a, K, V>
impl<'a, K, V> RefUnwindSafe for TableDefinition<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for TableDefinition<'a, K, V>
impl<'a, K, V> Sync for TableDefinition<'a, K, V>
impl<'a, K, V> Unpin for TableDefinition<'a, K, V>
impl<'a, K, V> UnwindSafe for TableDefinition<'a, K, V>where
K: UnwindSafe,
V: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes