operable

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

operable

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add[T any] interface {
	Add(T) T
	Sub(T) T
}

Add is a type that can be added and subtracted to another type.

type Bitwise

type Bitwise[T any] interface {
	Not(T) T
	And(T) T
	Or(T) T
	Xor(T) T
}

Biswise operations without shift ~, &, |, ^

type Multiply

type Multiply[T any] interface {
	Mul(T) T
	Div(T) T
	Mod(T) T
}

Multiply is a type that can be multiplied with another type.

type Power

type Power[T any] interface {
	Pow(T) T
	Sqrt(T) T
}

Power is a type that can be raised to a power.

type Shift

type Shift[T any] interface {
	LeftShift(T) T
	LogicalShift(T) T
	ArithmeticShift(T) T
}

Bitwise shift operations <<, >>, >>>

Jump to

Keyboard shortcuts

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