connect0459/starlark/value does not have a README file
pub trait Indexable {
fn indexable_get(Self, Int) -> Result[Value, String]
fn indexable_len(Self) -> Int
}pub struct BuiltinCallCtx {
// private fields
}fn BuiltinCallCtx::invoke(self : BuiltinCallCtx, callee : Value, args : Array[Value], kwargs : Array[(String, Value)]) -> Result[Value, String]#internal(unsafe, "eval engine only; not part of the public embedding API")
fn BuiltinCallCtx::new(call : (Value, Array[Value], Array[(String, Value)]) -> Result[Value, String], get_local? : (String) -> Value?) -> BuiltinCallCtxpub struct Cell {
// private fields
}pub struct CustomValue {
// private fields
}fn CustomValue::do_call(self : CustomValue, pos_args : Array[Value], kw_args : Array[(String, Value)]) -> Result[Value, String]?fn CustomValue::do_slice(self : CustomValue, start : Int, stop : Int, step : Int) -> Result[Value, String]?fn CustomValue::get_binary(self : CustomValue, op : String, rhs : Value, is_left : Bool) -> Result[Value, String]?fn CustomValue::get_set_field(self : CustomValue, name : String, v : Value) -> Result[Unit, String]?fn CustomValue::new(type_name_fn : () -> String, truth_fn : () -> Bool, repr_fn : () -> String) -> CustomValuefn CustomValue::with_attrs(self : CustomValue, get_attr_fn : (String) -> Result[Value?, String], attr_names_fn : () -> Array[String]) -> CustomValuefn CustomValue::with_binary(self : CustomValue, binary_fn : (String, Value, Bool) -> Result[Value, String]?) -> CustomValuefn CustomValue::with_call(self : CustomValue, call_fn : (Array[Value], Array[(String, Value)]) -> Result[Value, String]) -> CustomValuefn CustomValue::with_contains(self : CustomValue, contains_fn : (Value) -> Result[Bool, String]) -> CustomValuefn CustomValue::with_get_index(self : CustomValue, get_index_fn : (Int) -> Result[Value, String]) -> CustomValuefn CustomValue::with_items(self : CustomValue, items_fn : () -> Result[Array[(Value, Value)], String]) -> CustomValuefn CustomValue::with_iterate(self : CustomValue, iterate_fn : () -> Result[StarlarkIterator, String]) -> CustomValuefn CustomValue::with_set_field(self : CustomValue, set_field_fn : (String, Value) -> Result[Unit, String]) -> CustomValuefn CustomValue::with_set_index(self : CustomValue, set_index_fn : (Int, Value) -> Result[Unit, String]) -> CustomValuefn CustomValue::with_set_key(self : CustomValue, set_key_fn : (Value, Value) -> Result[Unit, String]) -> CustomValuefn CustomValue::with_slice(self : CustomValue, slice_fn : (Int, Int, Int) -> Result[Value, String]) -> CustomValuefn CustomValue::with_unary(self : CustomValue, unary_fn : (String) -> Result[Value, String]?) -> CustomValuepub struct StarlarkBoundMethod {
// private fields
}pub struct StarlarkBuiltinFunc {
// private fields
}fn StarlarkBuiltinFunc::bind_receiver(self : StarlarkBuiltinFunc, recv : Value) -> StarlarkBuiltinFuncfn StarlarkBuiltinFunc::call_body(self : StarlarkBuiltinFunc, ctx : BuiltinCallCtx, pos_args : Array[Value], kw_args : Array[(String, Value)]) -> Result[Value, String]?#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkBuiltinFunc::dispatch(name : String) -> StarlarkBuiltinFuncpub struct StarlarkBytesElems {
// private fields
}pub struct StarlarkDict {
// private fields
}pub struct StarlarkFunction {
// private fields
}#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::compiled_freevars(self : StarlarkFunction) -> Array[Cell]#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::compiled_funcode(self : StarlarkFunction) -> Funcode?#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::compiled_module_prog(self : StarlarkFunction) -> CompiledProgram?#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::compiled_module_slots(self : StarlarkFunction) -> Array[Value?]#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::defaults(self : StarlarkFunction) -> Array[Value?]#internal(unsafe, "bytecode VM only; not part of the public embedding API")
fn StarlarkFunction::from_compiled(name : String, funcode : Funcode, prog : CompiledProgram, slots : Array[Value?], defaults : Array[Value?], freevars : Array[Cell]) -> StarlarkFunction#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkFunction::globals(self : StarlarkFunction) -> Map[String, Value]#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkFunction::new(name : String, pos : Position) -> StarlarkFunctionpub struct StarlarkIterator {
// private fields
}pub struct StarlarkList {
// private fields
}#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkList::check_mutable(self : StarlarkList, verb : String) -> Result[Unit, String]#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkList::copy_items(self : StarlarkList) -> Array[Value]#internal(unsafe, "eval engine only; not part of the public embedding API")
fn StarlarkList::pop_at(self : StarlarkList, i : Int, verb : String) -> Result[Value, String]pub struct StarlarkModule {
// private fields
}pub struct StarlarkRange {
// private fields
}pub struct StarlarkSet {
// private fields
}pub struct StarlarkString {
// private fields
}pub struct StarlarkStringCodepoints {
// private fields
}pub struct StarlarkStringElems {
// private fields
}pub struct StringDict {
// private fields
}pub(all) enum Value {
None
Bool(Bool)
Int(BigInt)
Float(Double)
String(StarlarkString)
Bytes(Bytes)
List(StarlarkList)
Tuple(Array[Value])
Dict(StarlarkDict)
Set(StarlarkSet)
Range(StarlarkRange)
Function(StarlarkFunction)
Builtin(StarlarkBuiltinFunc)
BoundMethod(StarlarkBoundMethod)
Module(StarlarkModule)
StringElems(StarlarkStringElems)
StringCodepoints(StarlarkStringCodepoints)
BytesElems(StarlarkBytesElems)
ExtVal(CustomValue)
}#internal(unsafe, "eval engine only; embedders use len_of")
fn length_of(v : Value) -> Result[Int, String]