#[repr(transparent)]pub struct SequenceId(pub u32);Expand description
An identifier for a sequence, unique within a database.
Tuple Fields§
§0: u32Implementations§
Source§impl SequenceId
impl SequenceId
Source§impl SequenceId
impl SequenceId
Sourcepub const SENTINEL: Self
pub const SENTINEL: Self
The sentinel value for this type. This will be initialized to a valid ID upon insertion into a system table as a primary key.
Sourcepub fn is_sentinel(self) -> bool
pub fn is_sentinel(self) -> bool
Check if this ID is the sentinel value.
Trait Implementations§
Source§impl Clone for SequenceId
impl Clone for SequenceId
Source§fn clone(&self) -> SequenceId
fn clone(&self) -> SequenceId
Returns a duplicate 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 SequenceId
impl Debug for SequenceId
Source§impl Default for SequenceId
impl Default for SequenceId
Source§fn default() -> SequenceId
fn default() -> SequenceId
Returns the “default value” for a type. Read more
Source§impl Display for SequenceId
impl Display for SequenceId
Source§impl From<SequenceId> for u32
impl From<SequenceId> for u32
Source§fn from(value: SequenceId) -> Self
fn from(value: SequenceId) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SequenceId
impl From<i32> for SequenceId
Source§impl From<u32> for SequenceId
impl From<u32> for SequenceId
Source§impl From<usize> for SequenceId
impl From<usize> for SequenceId
Source§impl Hash for SequenceId
impl Hash for SequenceId
Source§impl Ord for SequenceId
impl Ord for SequenceId
Source§fn cmp(&self, other: &SequenceId) -> Ordering
fn cmp(&self, other: &SequenceId) -> 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 SequenceId
impl PartialEq for SequenceId
Source§impl PartialOrd for SequenceId
impl PartialOrd for SequenceId
impl Copy for SequenceId
impl Eq for SequenceId
impl IsEnabled for SequenceId
impl StructuralPartialEq for SequenceId
Auto Trait Implementations§
impl Freeze for SequenceId
impl RefUnwindSafe for SequenceId
impl Send for SequenceId
impl Sync for SequenceId
impl Unpin for SequenceId
impl UnsafeUnpin for SequenceId
impl UnwindSafe for SequenceId
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<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