pub struct StructShapeDef {
pub id: ShapeId,
pub name: NameId,
pub fields: Vec<NameId>,
}Expand description
A STRUCT shape definition (TM-4, docs/typed-mode-spec.md §6;
StructShapes section, docs/format-spec.md tag 0x0C).
Closed shape: fields is the ordered set of declared field names — the
same order crate::value::Value::Record’s flat field vector follows,
and the order RecordNew/static RecordGet/RecordSet offsets index
into.
Fields§
§id: ShapeId§name: NameId§fields: Vec<NameId>Trait Implementations§
Source§impl Clone for StructShapeDef
impl Clone for StructShapeDef
Source§fn clone(&self) -> StructShapeDef
fn clone(&self) -> StructShapeDef
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 StructShapeDef
impl Debug for StructShapeDef
impl Eq for StructShapeDef
Source§impl PartialEq for StructShapeDef
impl PartialEq for StructShapeDef
impl StructuralPartialEq for StructShapeDef
Auto Trait Implementations§
impl Freeze for StructShapeDef
impl RefUnwindSafe for StructShapeDef
impl Send for StructShapeDef
impl Sync for StructShapeDef
impl Unpin for StructShapeDef
impl UnsafeUnpin for StructShapeDef
impl UnwindSafe for StructShapeDef
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