Struct v9::id::Id [−][src]
A strongly typed row id.
Implementations
impl<M: TableMarker> Id<M>
[src]
pub fn new(i: M::RawId) -> Self
[src]
pub fn from_usize(x: usize) -> Self
[src]
pub fn to_usize(self) -> usize
[src]
pub fn step(self, d: i8) -> Self
[src]
pub fn next(self) -> Self
[src]
pub fn zero() -> Self
[src]
pub fn last() -> Self
[src]
impl<FM: TableMarker> Id<FM>
[src]
pub fn __v9_link_foreign_table_name() -> Option<Name>
[src]
pub fn __v9_link_foreign_key<LM: TableMarker>(universe: &mut Universe)
[src]
Trait Implementations
impl<'a, M: TableMarker> Check for Id<M>
[src]
type M = M
fn uncheck(&self) -> Id<M>
[src]
fn to_usize(&self) -> usize
[src]
unsafe fn from_usize(i: usize) -> Self
[src]
unsafe fn step(self, d: i8) -> Self
[src]
fn to_raw(&self) -> <Self::M as TableMarker>::RawId
[src]
unsafe fn check_from_len<'a>(
self,
table: PhantomData<&'a Self::M>,
max: usize
) -> CheckedId<'a, Self::M>
[src]
self,
table: PhantomData<&'a Self::M>,
max: usize
) -> CheckedId<'a, Self::M>
impl<M: Clone + TableMarker> Clone for Id<M> where
M::RawId: Clone,
[src]
M::RawId: Clone,
impl<M: Copy + TableMarker> Copy for Id<M> where
M::RawId: Copy,
[src]
M::RawId: Copy,
impl<M: TableMarker> Debug for Id<M>
[src]
impl<M: TableMarker> Default for Id<M>
[src]
impl<'de, M: TableMarker> Deserialize<'de> for Id<M> where
M: 'static,
[src]
M: 'static,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<M: TableMarker> Eq for Id<M>
[src]
impl<M: TableMarker> From<usize> for Id<M>
[src]
impl<M: TableMarker> Hash for Id<M>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, M: TableMarker> Into<Id<M>> for CheckedId<'a, M>
[src]
impl<M: TableMarker> Ord for Id<M>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<M: TableMarker> PartialEq<Id<M>> for Id<M>
[src]
impl<M: TableMarker> PartialOrd<Id<M>> for Id<M>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<M: TableMarker> Serialize for Id<M> where
M: 'static,
[src]
M: 'static,
Auto Trait Implementations
impl<M> RefUnwindSafe for Id<M> where
<M as TableMarker>::RawId: RefUnwindSafe,
<M as TableMarker>::RawId: RefUnwindSafe,
impl<M> Send for Id<M>
impl<M> Sync for Id<M>
impl<M> Unpin for Id<M> where
<M as TableMarker>::RawId: Unpin,
<M as TableMarker>::RawId: Unpin,
impl<M> UnwindSafe for Id<M> where
<M as TableMarker>::RawId: UnwindSafe,
<M as TableMarker>::RawId: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<X> ForeignKey for X
[src]
fn __v9_link_foreign_table_name() -> Option<Name>
[src]
fn __v9_link_foreign_key<LM: TableMarker>(_universe: &mut Universe)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,