pub struct FieldId {
frt_type_id: TypeId,
}🔬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.
Fields§
§frt_type_id: TypeId🔬This is a nightly-only experimental API. (
type_info #146922)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)Sourcepub const fn docs(self) -> &'static [&'static str]
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn docs(self) -> &'static [&'static str]
type_info #146922)Sourcepub const fn offset(self) -> usize
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn offset(self) -> usize
type_info #146922)Sourcepub const fn reflected_attrs(self) -> &'static [&'static str]
🔬This is a nightly-only experimental API. (type_info #146922)
pub const fn reflected_attrs(self) -> &'static [&'static str]
type_info #146922)Given given a FieldId returns a list of attributes.
Only the attributes of tools marked as reflect are returned, all other attributes are excluded.
The attributes are in a string representation.
Trait Implementations§
impl Copy for FieldId
Source§impl Eq for FieldId
impl Eq for FieldId
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
🔬This is a nightly-only experimental API. (
derive_eq_internals)1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
👎Deprecated since 1.95.0:
implementation detail of #[derive(Eq)]
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FieldId
impl PartialOrd for FieldId
Source§#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods)If
self == other, returns Continue(()).
Otherwise, returns Break(self < other), or equivalently Break(self <= other).
The only difference when chaining < and <= is how an equality result is
interpreted at the end of the chain. Read moreSource§#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods)Same as
__chaining_less, but for >/>= instead of </<=.impl StructuralPartialEq for FieldId
impl TrivialClone for FieldId
Auto Trait Implementations§
impl Forget for FieldId
impl Freeze for FieldId
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more