Skip to main content

Crate structupdate_support

Crate structupdate_support 

Source
Expand description

Runtime types and traits for the structupdate framework.

This crate provides the core building blocks used by the #[structupdate] macro:

You typically don’t use this crate directly; instead, use the main structupdate crate which re-exports everything from here along with the proc macro.

Modules§

defaults
Helper functions for creating Value instances with custom defaults.

Structs§

OptRecord
A wrapper for an optional nested record that implements Node.
OptValue
A wrapper for an optional simple value.
RecordMap
A key-value mapping where values are nested records implementing Node.
RecordMapDiff
RecordMapUpdates
RecordMapUpdatesIntoIter
RecordMapUpdatesIter
Value
A wrapper for a required value that supports updates and custom defaults.
ValueDiff
A representation of the diff between to Value instances.
ValueList
An ordered list of values that supports queue-like operations.
ValueListDiff
ValueListUpdates
ValueMap
A key-value mapping for simple value types.
ValueMapDiff
ValueMapUpdates
An update for updating a ValueMap<K, V>
ValueMapUpdatesIntoIter
ValueMapUpdatesIter
ValueSet
A set of unique values.
ValueSetDiff
ValueSetUpdates
An update for updating a ValueSet<K>
ValueSetUpdatesIntoIter
ValueSetUpdatesIter

Enums§

OptRecordDiff
Represent a delta between two optional records X and Y.
OptRecordUpdate
Update for an optional record
OptValueDiff
OptValueUpdate
A config item for amending a configuration value
RecordMapUpdate
An update for updating a RecordMap<K, U>
ValueListUpdate
A queue for updates for amending a ValueList<V>
ValueMapUpdate
A queue of updates for amending a ValueMap<K, V>
ValueSetUpdate
A queue of updates for amending a ValueSet<K>
ValueUpdate
An operation for amenting a Value

Traits§

Markable
A trait to mark records.
Node
A trait implemented by datastructures that can be mutated by applying a succession of updates.