Documentation ¶
Index ¶
- type ErrEmptyTray
- type Tray
- func (t *Tray[T]) ArrowEnd()
- func (t *Tray[T]) ArrowStart()
- func (t *Tray[T]) Delete(n int) error
- func (t *Tray[T]) ExtendTapeOnLeft(elems ...T)
- func (t *Tray[T]) ExtendTapeOnRight(elems ...T)
- func (t *Tray[T]) Insert(elems ...T)
- func (t *Tray[T]) MoveLeft(n int) bool
- func (t *Tray[T]) MoveRight(n int) bool
- func (t *Tray[T]) Read() (T, error)
- func (t *Tray[T]) ShiftLeftOfArrow(n int)
- func (t *Tray[T]) ShiftRightOfArrow(n int)
- func (t *Tray[T]) Write(elem T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrEmptyTray ¶
type ErrEmptyTray struct{}
func NewErrEmptyTray ¶
func NewErrEmptyTray() *ErrEmptyTray
func (*ErrEmptyTray) Error ¶
func (e *ErrEmptyTray) Error() string
type Tray ¶
type Tray[T any] struct { // contains filtered or unexported fields }
func (*Tray[T]) ArrowStart ¶
func (t *Tray[T]) ArrowStart()
func (*Tray[T]) ExtendTapeOnLeft ¶
func (t *Tray[T]) ExtendTapeOnLeft(elems ...T)
func (*Tray[T]) ExtendTapeOnRight ¶
func (t *Tray[T]) ExtendTapeOnRight(elems ...T)
func (*Tray[T]) ShiftLeftOfArrow ¶
func (*Tray[T]) ShiftRightOfArrow ¶
Click to show internal directories.
Click to hide internal directories.