Struct spacetimedb_primitives::ConstraintId
source · #[repr(transparent)]pub struct ConstraintId(pub u32);Tuple Fields§
§0: u32Implementations§
Trait Implementations§
source§impl Clone for ConstraintId
impl Clone for ConstraintId
source§fn clone(&self) -> ConstraintId
fn clone(&self) -> ConstraintId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ConstraintId
impl Debug for ConstraintId
source§impl Display for ConstraintId
impl Display for ConstraintId
source§impl From<ConstraintId> for u32
impl From<ConstraintId> for u32
source§fn from(value: ConstraintId) -> Self
fn from(value: ConstraintId) -> Self
Converts to this type from the input type.
source§impl From<ConstraintId> for usize
impl From<ConstraintId> for usize
source§fn from(value: ConstraintId) -> Self
fn from(value: ConstraintId) -> Self
Converts to this type from the input type.
source§impl From<i32> for ConstraintId
impl From<i32> for ConstraintId
source§impl From<u32> for ConstraintId
impl From<u32> for ConstraintId
source§impl From<u8> for ConstraintId
impl From<u8> for ConstraintId
source§impl From<usize> for ConstraintId
impl From<usize> for ConstraintId
source§impl Hash for ConstraintId
impl Hash for ConstraintId
source§impl Ord for ConstraintId
impl Ord for ConstraintId
source§fn cmp(&self, other: &ConstraintId) -> Ordering
fn cmp(&self, other: &ConstraintId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConstraintId
impl PartialEq for ConstraintId
source§fn eq(&self, other: &ConstraintId) -> bool
fn eq(&self, other: &ConstraintId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ConstraintId
impl PartialOrd for ConstraintId
source§fn partial_cmp(&self, other: &ConstraintId) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstraintId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ConstraintId
impl Eq for ConstraintId
impl StructuralPartialEq for ConstraintId
impl IsEnabled for ConstraintId
Auto Trait Implementations§
impl Freeze for ConstraintId
impl RefUnwindSafe for ConstraintId
impl Send for ConstraintId
impl Sync for ConstraintId
impl Unpin for ConstraintId
impl UnwindSafe for ConstraintId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more