pub struct FieldId { /* private fields */ }🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
Field representing type ID. Representing a field of a struct, tuple or enum variant.
Implementations§
Source§impl FieldId
impl FieldId
Sourcepub const fn type_id(self) -> TypeId
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn type_id(self) -> TypeId
type_info #146922)Sourcepub const fn name(self) -> &'static str
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn name(self) -> &'static str
type_info #146922)Trait Implementations§
impl Copy for FieldId
impl Eq for FieldId
Source§impl Ord for FieldId
impl Ord for FieldId
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 PartialOrd for FieldId
impl PartialOrd for FieldId
impl StructuralPartialEq for FieldId
Auto Trait Implementations§
impl Freeze for FieldId
impl RefUnwindSafe for FieldId
impl Send for FieldId
impl Sync for FieldId
impl Unpin for FieldId
impl UnsafeUnpin for FieldId
impl UnwindSafe for FieldId
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