Lines Matching defs:Struct
101 type Struct struct { struct
102 constructor starlark.Value
103 entries entries // sorted by name
127 func (s *Struct) ToStringDict(d starlark.StringDict) {
133 func (s *Struct) String() string {
156 func (s *Struct) Constructor() starlark.Value { return s.constructor }
158 func (s *Struct) Type() string { return "struct" }
159 func (s *Struct) Truth() starlark.Bool { return true } // even when empty
160 func (s *Struct) Hash() (uint32, error) {
175 func (s *Struct) Freeze() {
181 …(x *Struct) Binary(op syntax.Token, y starlark.Value, side starlark.Side) (starlark.Value, error) {
209 func (s *Struct) Attr(name string) (starlark.Value, error) {
235 func (s *Struct) len() int { return len(s.entries) }
238 func (s *Struct) AttrNames() []string {
246 func (x *Struct) CompareSameType(op syntax.Token, y_ starlark.Value, depth int) (bool, error) {
259 func structsEqual(x, y *Struct, depth int) (bool, error) {