Skip to main content

Module view

Module view 

Source
Expand description

Typed views over stored objects.

A view is a borrowed, zero-cost wrapper that gives schema-checked access to one class’s attributes. Generated views live in each vintage’s views module; this module holds the machinery they share.

Structs§

TypedRef
A reference to an object of a known class, stored as its mRID.

Traits§

TypedView
A typed view over an Object of a known class.

Functions§

iter_view
Iterate every object of a class as a typed view, subclasses included.
iter_view_ids
Iterate every object of a class with its handle.
view_by_mrid
Look up one object by mRID as a typed view.