pub struct StructFieldProjection { /* private fields */ }Expand description
One ordered struct field and its emitted identifier.
Implementations§
Source§impl StructFieldProjection
impl StructFieldProjection
Sourcepub const fn new(
name: Label,
target_name: TargetIdentifier,
value_type: ValueTypeTag,
optional: bool,
) -> Self
pub const fn new( name: Label, target_name: TargetIdentifier, value_type: ValueTypeTag, optional: bool, ) -> Self
Construct one struct value field.
Sourcepub const fn target_name(&self) -> &TargetIdentifier
pub const fn target_name(&self) -> &TargetIdentifier
Return the emitted field name.
Sourcepub const fn value_type(&self) -> ValueTypeTag
pub const fn value_type(&self) -> ValueTypeTag
Return the scalar value domain.
Trait Implementations§
Source§impl Clone for StructFieldProjection
impl Clone for StructFieldProjection
Source§impl Debug for StructFieldProjection
impl Debug for StructFieldProjection
impl Eq for StructFieldProjection
Source§impl PartialEq for StructFieldProjection
impl PartialEq for StructFieldProjection
Source§impl Serialize for StructFieldProjection
impl Serialize for StructFieldProjection
impl StructuralPartialEq for StructFieldProjection
Auto Trait Implementations§
impl Freeze for StructFieldProjection
impl RefUnwindSafe for StructFieldProjection
impl Send for StructFieldProjection
impl Sync for StructFieldProjection
impl Unpin for StructFieldProjection
impl UnsafeUnpin for StructFieldProjection
impl UnwindSafe for StructFieldProjection
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