Skip to main content

encode_state_field

Function encode_state_field 

Source
pub fn encode_state_field(
    previous: Option<&Value>,
    value: &Value,
    field: &StateField,
    types: &TypeTable,
    writer: &mut Writer,
)
Expand description

Encode a state field update. Fields without #[keyed] use encode; keyed record lists emit either 0 followed by the full list or 1 followed by Copy/Items segments referencing previous.