clone

package
v2.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](t T) T

func MarkAsOpaquePointer

func MarkAsOpaquePointer(t reflect.Type)

func MarkAsScalar

func MarkAsScalar(t reflect.Type)

func SetCustomFunc

func SetCustomFunc(t reflect.Type, fn Func)

func Slowly

func Slowly[T any](t T) T

func Undo

func Undo[T any](t T)

func Unwrap

func Unwrap[T any](t T) T

func Wrap

func Wrap[T any](t T) T

Types

type Allocator

type Allocator = clone.Allocator

func FromHeap

func FromHeap() *Allocator

func NewAllocator

func NewAllocator(pool unsafe.Pointer, methods *AllocatorMethods) (allocator *Allocator)

type AllocatorMethods

type AllocatorMethods = clone.AllocatorMethods

type Func

type Func = clone.Func

Jump to

Keyboard shortcuts

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