inserter

package
v0.0.0-...-d0275cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Insertable

type Insertable interface {
	Extract() int
	Insert(item int) bool
}

type Inserter

type Inserter struct {
	// contains filtered or unexported fields
}

func NewInserter

func NewInserter(src Insertable, dest Insertable, rot int) Inserter

func (*Inserter) Item

func (i *Inserter) Item() int

func (*Inserter) Pos

func (i *Inserter) Pos() (int, int)

func (*Inserter) Rotation

func (i *Inserter) Rotation() int

func (*Inserter) SetDestination

func (i *Inserter) SetDestination(dest Insertable)

func (*Inserter) SetSource

func (i *Inserter) SetSource(src Insertable)

func (*Inserter) Tick

func (i *Inserter) Tick()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL