Skip to main content

fields

Function fields 

Source
pub fn fields<'a, const N: usize>(
    members: &'a [Member],
    names: [&str; N],
    owner: &str,
    pos: Pos,
) -> Result<[&'a Value; N], Error>
Expand description

The members of a record, or of a constructor with a record, in the order of names, which are the fields. Every field is required and no other is allowed, and the errors are check’s, in its order: a duplicate or an unknown field at the member, then a missing one at the record. owner is the constructor, or record for a record without a name.