Struct v9::id::Id[][src]

pub struct Id<M: TableMarker>(pub M::RawId);

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]

Trait Implementations

impl<'a, M: TableMarker> Check for Id<M>[src]

type M = M

impl<M: Clone + TableMarker> Clone for Id<M> where
    M::RawId: Clone
[src]

impl<M: Copy + TableMarker> Copy for Id<M> where
    M::RawId: Copy
[src]

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]

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]

impl<'a, M: TableMarker> Into<Id<M>> for CheckedId<'a, M>[src]

impl<M: TableMarker> Ord for Id<M>[src]

impl<M: TableMarker> PartialEq<Id<M>> for Id<M>[src]

impl<M: TableMarker> PartialOrd<Id<M>> for Id<M>[src]

impl<M: TableMarker> Serialize for Id<M> where
    M: 'static, 
[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for Id<M> where
    <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

impl<M> UnwindSafe for Id<M> where
    <M as TableMarker>::RawId: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<X> ForeignKey for X[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.