pub struct TableId(pub usize);Expand description
Uniquely identifies a table within a Schema.
The inner usize is a zero-based index into Schema::tables.
§Examples
ⓘ
use toasty_core::schema::db::TableId;
let id = TableId(0);
assert_eq!(id.0, 0);Tuple Fields§
§0: usizeTrait Implementations§
Source§impl From<&InsertTable> for TableId
impl From<&InsertTable> for TableId
Source§fn from(value: &InsertTable) -> Self
fn from(value: &InsertTable) -> Self
Converts to this type from the input type.
impl Copy for TableId
impl Eq for TableId
impl StructuralPartialEq for TableId
Auto Trait Implementations§
impl Freeze for TableId
impl RefUnwindSafe for TableId
impl Send for TableId
impl Sync for TableId
impl Unpin for TableId
impl UnsafeUnpin for TableId
impl UnwindSafe for TableId
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.