nustack

refs.item

ItemRef hierarchy: leaf Ref + Form mixin tiers.

Module nu.domains.shape.refs.item.

ItemRef hierarchy: leaf Ref + Form mixin tiers.

ItemRef = ItemForm + StructuredRef MutableItemRef = MutableItemForm + ItemRef ReactiveItemRef = ReactiveItemForm + MutableItemRef

A leaf Ref names a single typed value, no child descent. The Form mixins provide the slot-level API: base: exists(), missing() mutable: + set(), erase() reactive: + on_change()

NameSortCallMeaning
ItemRefrefItemRef(address, parent_ref=None, owner_shape=None)Leaf Ref: single typed value, no child descent.
MutableItemRefrefMutableItemRef(address, parent_ref=None, owner_shape=None)Mutable leaf Ref: single typed value with write/erase.
ReactiveItemRefrefReactiveItemRef(address, parent_ref=None, owner_shape=None)Reactive leaf Ref: single typed value with observation.

ItemRef

Leaf Ref: single typed value, no child descent.

ItemRef(address, parent_ref=None, owner_shape=None)

Path nu.domains.shape.ItemRef. Kind Ref, sort ref, cardinality scalar.

API: exists(), missing() (from ItemForm).

Inherited methods

From nu.domains.shape.forms.item.ItemForm:

CallBuildsMeaning
.exists()ExistsBuild an Exists query.
.missing()MissingBuild a Missing query.

From nu.lang.forms.Form:

CallBuildsMeaning
.is_empty()BoolTrue if this Form yields the EMPTY sentinel.
.is_invalid()BoolTrue if this Form yields the INVALID sentinel.
.is_sentinel()BoolTrue if this Form yields either sentinel (EMPTY or INVALID).
.not_empty()BoolTrue if this Form does not yield EMPTY.
.not_invalid()BoolTrue if this Form does not yield INVALID.

Undocumented: example.

MutableItemRef

Mutable leaf Ref: single typed value with write/erase.

MutableItemRef(address, parent_ref=None, owner_shape=None)

Path nu.domains.shape.MutableItemRef. Kind Ref, sort ref, cardinality scalar.

API: exists(), missing(), set(v), erase() (from MutableItemForm).

Inherited methods

From nu.domains.shape.forms.item.MutableItemForm:

CallBuildsMeaning
.set(value)SetCmdBuild a SetCmd.
.erase()EraseBuild an Erase.
.init(value)IfDoSet value iff the leaf is currently missing.

From nu.domains.shape.forms.item.ItemForm:

CallBuildsMeaning
.exists()ExistsBuild an Exists query.
.missing()MissingBuild a Missing query.

From nu.lang.forms.Form:

CallBuildsMeaning
.is_empty()BoolTrue if this Form yields the EMPTY sentinel.
.is_invalid()BoolTrue if this Form yields the INVALID sentinel.
.is_sentinel()BoolTrue if this Form yields either sentinel (EMPTY or INVALID).
.not_empty()BoolTrue if this Form does not yield EMPTY.
.not_invalid()BoolTrue if this Form does not yield INVALID.

Undocumented: example.

ReactiveItemRef

Reactive leaf Ref: single typed value with observation.

ReactiveItemRef(address, parent_ref=None, owner_shape=None)

Path nu.domains.shape.ReactiveItemRef. Kind Ref, sort ref, cardinality scalar.

API: exists(), missing(), set(v), erase(), on_change() (from ReactiveItemForm).

Inherited methods

From nu.domains.shape.forms.item.ReactiveItemForm:

CallBuildsMeaning
.on_change()OnPrimitiveChangeSubscribe to changes on this leaf.

From nu.domains.shape.forms.item.MutableItemForm:

CallBuildsMeaning
.set(value)SetCmdBuild a SetCmd.
.erase()EraseBuild an Erase.
.init(value)IfDoSet value iff the leaf is currently missing.

From nu.domains.shape.forms.item.ItemForm:

CallBuildsMeaning
.exists()ExistsBuild an Exists query.
.missing()MissingBuild a Missing query.

From nu.lang.forms.Form:

CallBuildsMeaning
.is_empty()BoolTrue if this Form yields the EMPTY sentinel.
.is_invalid()BoolTrue if this Form yields the INVALID sentinel.
.is_sentinel()BoolTrue if this Form yields either sentinel (EMPTY or INVALID).
.not_empty()BoolTrue if this Form does not yield EMPTY.
.not_invalid()BoolTrue if this Form does not yield INVALID.

Undocumented: example.

On this page