pub struct TableInner<T>where
T: TableType + 'static,{ /* private fields */ }Implementations§
Source§impl<T> TableInner<T>where
T: TableType,
impl<T> TableInner<T>where
T: TableType,
Sourcepub fn create_index<I: IndexType>(
&self,
name: &str,
key_func: impl Fn(&T) -> I + Send + Sync + 'static,
) -> DbResult<Index<T, I>>
pub fn create_index<I: IndexType>( &self, name: &str, key_func: impl Fn(&T) -> I + Send + Sync + 'static, ) -> DbResult<Index<T, I>>
Sourcepub fn constraint(&self, constraint: Constraint<T>) -> DbResult<()>
pub fn constraint(&self, constraint: Constraint<T>) -> DbResult<()>
Auto Trait Implementations§
impl<T> !Freeze for TableInner<T>
impl<T> !RefUnwindSafe for TableInner<T>
impl<T> !Send for TableInner<T>
impl<T> !Sync for TableInner<T>
impl<T> Unpin for TableInner<T>
impl<T> !UnwindSafe for TableInner<T>
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