Struct v9::id::CheckedId [−][src]
An Id
that is known to be in-bounds on the given table.
You should check the Id if you’ll be doing a lot of indexing.
Trait Implementations
impl<'a, M: TableMarker> Check for CheckedId<'a, M>
[src]
type M = M
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>
fn uncheck(&self) -> Id<Self::M>
[src]
impl<'a, M: Clone + TableMarker> Clone for CheckedId<'a, M>
[src]
impl<'a, M: Copy + TableMarker> Copy for CheckedId<'a, M>
[src]
impl<'a, M: TableMarker> Debug for CheckedId<'a, M>
[src]
impl<'a, M: TableMarker> Eq for CheckedId<'a, M>
[src]
impl<'a, M: TableMarker> Into<Id<M>> for CheckedId<'a, M>
[src]
impl<'a, M: TableMarker> Ord for CheckedId<'a, 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<'a, M: TableMarker> PartialEq<CheckedId<'a, M>> for CheckedId<'a, M>
[src]
impl<'a, M: TableMarker> PartialOrd<CheckedId<'a, M>> for CheckedId<'a, M>
[src]
Auto Trait Implementations
impl<'a, M> RefUnwindSafe for CheckedId<'a, M> where
M: RefUnwindSafe,
<M as TableMarker>::RawId: RefUnwindSafe,
M: RefUnwindSafe,
<M as TableMarker>::RawId: RefUnwindSafe,
impl<'a, M> Send for CheckedId<'a, M>
impl<'a, M> Sync for CheckedId<'a, M>
impl<'a, M> Unpin for CheckedId<'a, M> where
<M as TableMarker>::RawId: Unpin,
<M as TableMarker>::RawId: Unpin,
impl<'a, M> UnwindSafe for CheckedId<'a, M> where
M: RefUnwindSafe,
<M as TableMarker>::RawId: UnwindSafe,
M: RefUnwindSafe,
<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<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>,