marianoguerra/tutuca/core does not have a README file
pub(open) trait Ctx {
fn path(Self) -> DispatchPath = _
fn target_path(Self) -> DispatchPath = _
fn name(Self) -> String? = _
fn send(Self, name : String, args : Array[Value]) -> Unit = _
fn bubble(Self, name : String, args : Array[Value]) -> Unit = _
fn send_at_path(Self, path : DispatchPath, name : String, args : Array[Value]) -> Unit = _
fn bubble_at_path(Self, path : DispatchPath, name : String, args : Array[Value]) -> Unit = _
fn request(Self, name : String, args : Array[Value], opts : RequestOpts) -> Unit = _
fn stop_propagation(Self) -> Unit = _
fn at(Self) -> PathChanges = _
fn walk_path(Self, callback : (Int, Value) -> Bool) -> Unit = _
}pub(open) trait Fields {
fn schema() -> SchemaInfo
fn encode(Self) -> Map[String, Value]
fn decode(Map[String, Value]) -> Self?
}pub(open) trait Obj {
fn component_id(Self) -> Int? = _
fn obj_field(Self, name : String) -> Value? = _
fn obj_with_field(Self, name : String, v : Value) -> Value? = _
fn obj_item(Self, key : PathKey) -> Value? = _
fn obj_with_item(Self, key : PathKey, v : Value) -> Value? = _
fn obj_seq_entries(Self) -> Array[(PathKey, Value)]? = _
fn obj_callable(Self, name : String, ns : HandlerNamespace) -> Value? = _
fn obj_handler(Self, bucket : HandlerBucket, name : String) -> Handler? = _
fn obj_schema(Self) -> SchemaInfo? = _
fn obj_size(Self) -> Int? = _
fn obj_identity(Self) -> ObjId? = _
fn obj_eq(Self, other : &Obj) -> Bool = _
fn obj_debug(Self) -> String = _
fn obj_persist_id(Self) -> String? = _
}pub(open) trait Stack {
fn lookup_name(Self, String) -> Value = _
fn lookup_bind(Self, String) -> Value = _
fn lookup_dynamic(Self, String) -> Value = _
fn lookup_field_raw(Self, String) -> Value = _
fn lookup_method(Self, String) -> Value = _
fn get_handler_for(Self, String, HandlerNamespace) -> Value = _
}pub(all) struct NullCtx {
}pub(all) struct NullStack {
}pub(all) struct Refusal {
code : RefusalCode
asked : String
rule : String
sentence : String
state : Value
path : Path
} derive(Eq, Debug)fn RequestOpts::new(on_ok_name? : String, on_error_name? : String, on_res_name? : String, live_path? : Bool) -> RequestOptsfn SchemaInfo::new(name? : String, fingerprint~ : String, fields? : Array[FieldInfo], inputs? : Array[String], receives? : Array[String], bubbles? : Array[String], responses? : Array[String], methods? : Array[String], ids? : Array[String], view_names? : Array[String], init_names? : Array[String]) -> SchemaInfopub(all) enum Step {
FieldStep(String)
SeqStep(field~ : String, key~ : PathKey)
SeqAccessStep(seq_field~ : String, key_field~ : String)
EachRenderItStep(field~ : String, key~ : PathKey)
BindStep(binds~ : Map[String, Value])
ScopeBindStep(val~ : Val)
EachBindStep(val~ : Val, when_val~ : Val?, enrich_with_val~ : Val?, loop_with_val~ : Val?, key~ : PathKey)
} derive(Eq, Debug)pub(all) enum Val {
Const(lit~ : Lit, from_macro~ : Bool)
StrTpl(Array[Val?])
App(name~ : String, args~ : Array[Val])
Name(String)
HandlerName(name~ : String, ns~ : HandlerNamespace)
TypeName(String)
Bind(String)
BindMember(name~ : String, prop~ : String)
Dyn(String)
Field(String)
Method(String)
SeqAccess(seq~ : String, key~ : String)
} derive(Eq, Debug)fn mutator_name(verb : String, field : String) -> Stringfn postcondition_failed(handler~ : String, pred~ : String, sentence? : String, state? : Value) -> Unitfn precondition_failed(handler~ : String, pred~ : String, sentence? : String, state? : Value) -> Unitfn refusing() -> BoolMoonBit port of the tutuca UI framework (value language, templates, vdom, components, app runtime, lint, CLI)
Dependencies