pub struct FieldRecord {
pub members: Vec<Ident>,
pub name: String,
pub ty: TypeRef,
pub decon: FieldDecon,
}Expand description
One field of a value form (see DeconRecord::Fields).
Fields§
§members: Vec<Ident>Field-access chain from the value form’s returned struct. More than one element when the adapter inlined a nested declared class.
name: StringThe leaf name (already __-joined across inlined nesting).
ty: TypeRefThe field’s reading, Option / Vec layers included — and its
syntax with it, which is what a leaf’s out_ty spells.
The declaration carries this rather than naming a syn::Type for the
walk to look up, because there was nothing to look up: a field record is
built from an element whose every field already has a reading, and the
types it names are the ones the caller registers after the walk
returns. Asking the registry here was asking before registration
(#266) — a lookup that could only miss, answered by a second source of
readings that hid the ordering.
decon: FieldDeconHow this field decomposes.
Trait Implementations§
Source§impl Clone for FieldRecord
impl Clone for FieldRecord
Source§fn clone(&self) -> FieldRecord
fn clone(&self) -> FieldRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !Send for FieldRecord
impl !Sync for FieldRecord
impl Freeze for FieldRecord
impl RefUnwindSafe for FieldRecord
impl Unpin for FieldRecord
impl UnsafeUnpin for FieldRecord
impl UnwindSafe for FieldRecord
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
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> ⓘ
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> ⓘ
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