pub struct ValueTypeId { /* private fields */ }
Implementations§
Source§impl ValueTypeId
impl ValueTypeId
pub const MIN: Self
pub const MAX: Self
Sourcepub const unsafe fn new_unchecked(id: u32) -> Self
pub const unsafe fn new_unchecked(id: u32) -> Self
Sourcepub const fn to_non_zero_u64(self) -> NonZeroU64
pub const fn to_non_zero_u64(self) -> NonZeroU64
Allows const
conversion to a NonZeroU64
, useful with
crate::id_factory::IdFactory::new_const
.
Trait Implementations§
Source§impl Clone for ValueTypeId
impl Clone for ValueTypeId
Source§fn clone(&self) -> ValueTypeId
fn clone(&self) -> ValueTypeId
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 ValueTypeId
impl Debug for ValueTypeId
Source§impl Deref for ValueTypeId
impl Deref for ValueTypeId
Source§impl<'de> Deserialize<'de> for ValueTypeId
impl<'de> Deserialize<'de> for ValueTypeId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValueTypeId
impl Display for ValueTypeId
Source§impl From<ValueTypeId> for NonZeroU64
impl From<ValueTypeId> for NonZeroU64
Source§fn from(id: ValueTypeId) -> Self
fn from(id: ValueTypeId) -> Self
Converts to this type from the input type.
Source§impl Hash for ValueTypeId
impl Hash for ValueTypeId
Source§impl Ord for ValueTypeId
impl Ord for ValueTypeId
Source§fn cmp(&self, other: &ValueTypeId) -> Ordering
fn cmp(&self, other: &ValueTypeId) -> 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 ValueTypeId
impl PartialEq for ValueTypeId
Source§impl PartialOrd for ValueTypeId
impl PartialOrd for ValueTypeId
Source§impl Serialize for ValueTypeId
impl Serialize for ValueTypeId
Source§impl TaskInput for ValueTypeId
impl TaskInput for ValueTypeId
fn is_transient(&self) -> bool
fn resolve_input(&self) -> impl Future<Output = Result<Self>> + Send + '_
fn is_resolved(&self) -> bool
Source§impl TraceRawVcs for ValueTypeId
impl TraceRawVcs for ValueTypeId
fn trace_raw_vcs(&self, _trace_context: &mut TraceRawVcsContext)
fn get_raw_vcs(&self) -> Vec<RawVc>
Source§impl TryFrom<NonZero<u64>> for ValueTypeId
impl TryFrom<NonZero<u64>> for ValueTypeId
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for ValueTypeId
impl TryFrom<u32> for ValueTypeId
impl Copy for ValueTypeId
impl Eq for ValueTypeId
impl StructuralPartialEq for ValueTypeId
Auto Trait Implementations§
impl Freeze for ValueTypeId
impl RefUnwindSafe for ValueTypeId
impl Send for ValueTypeId
impl Sync for ValueTypeId
impl Unpin for ValueTypeId
impl UnwindSafe for ValueTypeId
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> DynamicEqHash for T
impl<T> DynamicEqHash for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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