pub struct FunctionId { /* private fields */ }Implementations§
Source§impl FunctionId
impl FunctionId
pub const MIN: Self
pub const MAX: Self
Sourcepub const unsafe fn new_unchecked(id: u16) -> Self
pub const unsafe fn new_unchecked(id: u16) -> Self
Sourcepub fn new(id: u16) -> Option<Self>
pub fn new(id: u16) -> Option<Self>
Constructs a wrapper type from the numeric identifier.
Returns None if the provided id is zero, otherwise returns
Some(Self) containing the wrapped non-zero identifier.
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<'de, __Context> BorrowDecode<'de, __Context> for FunctionId
impl<'de, __Context> BorrowDecode<'de, __Context> for FunctionId
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for FunctionId
impl Clone for FunctionId
Source§fn clone(&self) -> FunctionId
fn clone(&self) -> FunctionId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionId
impl Debug for FunctionId
Source§impl<Context> Decode<Context> for FunctionId
impl<Context> Decode<Context> for FunctionId
Source§impl Deref for FunctionId
impl Deref for FunctionId
Source§impl<'de> Deserialize<'de> for FunctionId
impl<'de> Deserialize<'de> for FunctionId
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 FunctionId
impl Display for FunctionId
Source§impl Encode for FunctionId
impl Encode for FunctionId
Source§impl From<FunctionId> for NonZeroU64
impl From<FunctionId> for NonZeroU64
Source§fn from(id: FunctionId) -> Self
fn from(id: FunctionId) -> Self
Converts to this type from the input type.
Source§impl Hash for FunctionId
impl Hash for FunctionId
Source§impl Ord for FunctionId
impl Ord for FunctionId
Source§fn cmp(&self, other: &FunctionId) -> Ordering
fn cmp(&self, other: &FunctionId) -> Ordering
1.21.0 (const: unstable) · 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 FunctionId
impl PartialEq for FunctionId
Source§fn eq(&self, other: &FunctionId) -> bool
fn eq(&self, other: &FunctionId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FunctionId
impl PartialOrd for FunctionId
Source§impl Serialize for FunctionId
impl Serialize for FunctionId
Source§impl TraceRawVcs for FunctionId
impl TraceRawVcs for FunctionId
fn trace_raw_vcs(&self, _trace_context: &mut TraceRawVcsContext)
fn get_raw_vcs(&self) -> Vec<RawVc>
Source§impl TryFrom<NonZero<u64>> for FunctionId
impl TryFrom<NonZero<u64>> for FunctionId
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<u16> for FunctionId
impl TryFrom<u16> for FunctionId
impl Copy for FunctionId
impl Eq for FunctionId
impl StructuralPartialEq for FunctionId
Auto Trait Implementations§
impl Freeze for FunctionId
impl RefUnwindSafe for FunctionId
impl Send for FunctionId
impl Sync for FunctionId
impl Unpin for FunctionId
impl UnsafeUnpin for FunctionId
impl UnwindSafe for FunctionId
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
fn dyn_partial_eq(&self, other: &(dyn Any + 'static)) -> bool
Source§impl<T> DynTaskInputs for T
impl<T> DynTaskInputs for T
fn dyn_type_name(&self) -> &'static str
§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<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<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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.