pub struct TableKey<Name, Table>(/* private fields */);Expand description
Key of a table or view: its SQL name spelled as a type-level list of
nibbles (see name), plus the Rust type for error messages.
Rust’s trait system cannot tell that two different types are not equal, but it can compare two nibble lists digit by digit. Comparing by name is what lets the lookup skip non-matching tables.
Trait Implementations§
impl<Name, Table> Copy for TableKey<Name, Table>
Auto Trait Implementations§
impl<Name, Table> Freeze for TableKey<Name, Table>
impl<Name, Table> RefUnwindSafe for TableKey<Name, Table>
impl<Name, Table> Send for TableKey<Name, Table>
impl<Name, Table> Sync for TableKey<Name, Table>
impl<Name, Table> Unpin for TableKey<Name, Table>
impl<Name, Table> UnsafeUnpin for TableKey<Name, Table>
impl<Name, Table> UnwindSafe for TableKey<Name, Table>
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