nustack
ReferenceNu

forms

Native Form layer.

Module nu.forms.

Native Form layer.

A Form is what a fabric location holds (an Int, a Str, a Dict, a ToList) and the fluent typed surface for building Nu over it. The base mixin Form and the passthrough TypedNu live in nu.lang (re-exported here for convenience); the sentinel predicates (IsEmpty / IsInvalid) live in nu.core.

Concrete primitive Forms live in primitives/, concrete collection Forms in collections/ (with abstract contracts in collections/abc/).

Modules

ModuleWhat
nu.forms.collections.abcGeneric collection interfaces and interactions.

nu.lang.forms

Module nu.lang.forms.

Form and TypedNu - the type-wrapping layer.

Full entries

NameSortCallMeaning
TypedNuscalar_queryTypedNu()Transparent ScalarQuery passthrough carrying a python type tag T.

primitives.any_

Module nu.forms.primitives.any_.

Any - dynamic/unknown type interface.

Full entries

NameSortCallMeaning
Anyscalar_queryAny()Wildcard interface. Full operator surface, no promise about the runtime type.

primitives.bool_

Module nu.forms.primitives.bool_.

Bool - boolean interface.

Full entries

NameSortCallMeaning
Boolscalar_queryBool()Boolean interface. Logical + comparable.

primitives.bytes_

Module nu.forms.primitives.bytes_.

Bytes - bytes interface.

Full entries

NameSortCallMeaning
Bytesscalar_queryBytes()Bytes interface. Sliceable + comparable + logical + bytes methods.

collections.dict_

Module nu.forms.collections.dict_.

Dict - dict interface.

Full entries

NameSortCallMeaning
Dictscalar_queryDict()Dict interface. Mutable mapping + comparable.

collections.views

Module nu.forms.collections.views.

Dict view interfaces - DictKeys, DictValues, DictItems.

Full entries

NameSortCallMeaning
DictItemsscalar_queryDictItems()View of a Dict's (key, value) pairs, produced by dict.items().
DictKeysscalar_queryDictKeys()View of a Dict's keys, produced by dict.keys().
DictValuesscalar_queryDictValues()View of a Dict's values, produced by dict.values().

primitives.sentinel_

Module nu.forms.primitives.sentinel_.

Sentinel interfaces - SentinelForm, EmptyForm, InvalidForm.

Full entries

NameSortCallMeaning
EmptyFormscalar_queryEmptyForm()Wraps EMPTY, the address-resolved-to-nothing sentinel.
InvalidFormscalar_queryInvalidForm()Wraps INVALID, the operation-not-applicable sentinel.
SentinelFormscalar_querySentinelForm()Base for the sentinel interfaces, EmptyForm and InvalidForm.

primitives.float_

Module nu.forms.primitives.float_.

Float - float interface.

Full entries

NameSortCallMeaning
Floatscalar_queryFloat()Float interface. Numeric + comparable + logical.

collections.set_

Module nu.forms.collections.set_.

Set, FrozenSet - set interfaces.

Full entries

NameSortCallMeaning
FrozenSetscalar_queryFrozenSet()FrozenSet interface. Immutable set + comparable.
Setscalar_querySet()Set interface. Mutable set + comparable.

primitives.int_

Module nu.forms.primitives.int_.

Int - integer interface.

Full entries

NameSortCallMeaning
Intscalar_queryInt()Integer interface. Full numeric + comparable + logical + bitwise.

collections.iterator_

Module nu.forms.collections.iterator_.

Iterator - lazy iterator interface.

Full entries

NameSortCallMeaning
Iteratorscalar_queryIterator()Lazy stream over another form's elements.

collections.list_

Module nu.forms.collections.list_.

List - list interface.

Full entries

NameSortCallMeaning
Listscalar_queryList()List interface. Mutable sequence + comparable.

primitives.none_

Module nu.forms.primitives.none_.

None_ - none interface.

Full entries

NameSortCallMeaning
None_scalar_queryNone_(source=None)None interface. Logical only.

primitives.str_

Module nu.forms.primitives.str_.

Str - string interface.

Full entries

NameSortCallMeaning
Strscalar_queryStr()String interface. Addable + sliceable + comparable + logical + string methods.

collections.tuple_

Module nu.forms.collections.tuple_.

Tuple - tuple interface.

Full entries

NameSortCallMeaning
Tuplescalar_queryTuple()Tuple interface. Immutable sequence + comparable.

On this page