Searched refs:stringElems (Results 1 – 2 of 2) sorted by relevance
558 type stringElems struct { struct564 _ Iterable = (*stringElems)(nil)565 _ Indexable = (*stringElems)(nil)568 func (si stringElems) String() string { argument575 func (si stringElems) Type() string { return "string.elems" } argument576 func (si stringElems) Freeze() {} // immutable argument577 func (si stringElems) Truth() Bool { return True } argument578 func (si stringElems) Hash() (uint32, error) { return 0, fmt.Errorf("unhashable: %s", si.Type()) } argument579 func (si stringElems) Iterate() Iterator { return &stringElemsIterator{si, 0} } argument580 func (si stringElems) Len() int { return len(si.s) } argument[all …]
1462 return stringElems{s, ords}, nil