Home
last modified time | relevance | path

Searched refs:stringElems (Results 1 – 2 of 2) sorted by relevance

/external/starlark-go/starlark/
Dvalue.go558 type stringElems struct { struct
564 _ Iterable = (*stringElems)(nil)
565 _ Indexable = (*stringElems)(nil)
568 func (si stringElems) String() string { argument
575 func (si stringElems) Type() string { return "string.elems" } argument
576 func (si stringElems) Freeze() {} // immutable argument
577 func (si stringElems) Truth() Bool { return True } argument
578 func (si stringElems) Hash() (uint32, error) { return 0, fmt.Errorf("unhashable: %s", si.Type()) } argument
579 func (si stringElems) Iterate() Iterator { return &stringElemsIterator{si, 0} } argument
580 func (si stringElems) Len() int { return len(si.s) } argument
[all …]
Dlibrary.go1462 return stringElems{s, ords}, nil