struct Novika::StructViewForm
- Novika::StructViewForm
- Struct
- Value
- Object
Overview
A thin wrapper around FFI::StructView
and its descendants.
This form is a readable and submittable store, which means you
can read (e.g. entry:fetch
) and submit (e.g. entry:submit
)
to exsisting entries.
Included Modules
Defined in:
novika/forms/foreign.crConstructors
Class Method Summary
Instance Method Summary
-
#==(other : self)
Returns whether this and other struct views are equal.
-
#address(*args, **options)
Returns the address of the underlying struct in memory.
-
#address(*args, **options, &)
Returns the address of the underlying struct in memory.
- #desc(io)
-
#form_for?(name : Form) : Form | Nil
Returns the value form for an entry with the given name, or nil if no such entry exists.
-
#has_form_for?(name : Form) : Bool
Returns whether this store has an entry with the given name.
-
#inline?
Returns whether this view is an inline struct view.
-
#layout : StructLayoutForm
Returns the struct layout of the underlying struct view.
-
#opener?(name : Form) : Bool
Returns whether name opens its value form, as defined in this store.
-
#pusher?(name : Form) : Bool
Returns whether name pushes its value form, as defined in this store.
-
#reference?
Returns whether this view is a struct reference view.
-
#submit?(name : Form, form : Form)
Submits value form to an entry with the given name.
- #to_s(io)
-
#union?
Returns whether this view is a union view.
-
#view : FFI::StructView
Returns the underlying struct view.
Instance methods inherited from module Novika::ISubmittableStore
submit(name : Form, form : Form)
submit,
submit?(name : Form, form : Form)
submit?
Class methods inherited from module Novika::ISubmittableStore
typedesc
typedesc
Instance methods inherited from module Novika::IReadableStore
form_for(name : Form) : Form
form_for,
form_for?(name : Form) : Form | Nil
form_for?,
has_form_for?(name : Form) : Bool
has_form_for?,
opener?(name : Form) : Bool
opener?,
pusher?(name : Form) : Bool
pusher?
Class methods inherited from module Novika::IReadableStore
typedesc
typedesc
Instance methods inherited from module Novika::Form
a(type : T.class) : T forall T
a,
desc(io : IO)desc : String desc, die(details : String) die, effect(io)
effect effect, on_open(engine : Engine) : self on_open, on_parent_open(engine : Engine) : self on_parent_open, onto(block : Block) : self onto, sel(a, b) sel, to_quote : Quote to_quote
Instance methods inherited from module Novika::Schedulable
schedule(engine : Engine, stack : Block)
schedule,
schedule!(engine : Engine, stack : Block)
schedule!
Constructor Detail
Class Method Detail
Instance Method Detail
Returns whether this and other struct views are equal. Performs deep, recursive equality based on the fields' values. Supports self-reference, mutual reference, etc.
Returns the value form for an entry with the given name, or nil if no such entry exists.
Returns whether this store has an entry with the given name.
Returns whether name opens its value form, as defined in this store. Dies if name is not defined in this store.
Returns whether name pushes its value form, as defined in this store. Dies if name is not defined in this store.
Submits value form to an entry with the given name. Returns nil if no such entry exists.