Documentation ¶
Index ¶
- Variables
- func Add(a uint64, b uint64) (uint64, error)
- func Div(dividend uint64, divisor uint64) uint64
- func Equal(a uint64, b uint64) bool
- func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType
- func Sub(a uint64, b uint64) (uint64, error)
- type ArithmeticError
- type ArithmeticErrorIntegerOverflow
- type BufLifter
- type BufLowerer
- type BufReader
- type BufWriter
- type FfiConverter
- type FfiConverterBool
- type FfiConverterString
- type FfiConverterTypeArithmeticError
- func (c FfiConverterTypeArithmeticError) Lift(eb RustBufferI) error
- func (c FfiConverterTypeArithmeticError) Lower(value *ArithmeticError) RustBuffer
- func (c FfiConverterTypeArithmeticError) Read(reader io.Reader) error
- func (c FfiConverterTypeArithmeticError) Write(writer io.Writer, value *ArithmeticError)
- type FfiConverterUint64
- type FfiDestroyerBool
- type FfiDestroyerString
- type FfiDestroyerUint64
- type FfiRustBufConverter
- type RustBuffer
- type RustBufferI
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrArithmeticErrorIntegerOverflow = fmt.Errorf("ArithmeticErrorIntegerOverflow")
Err* are used for checking error type with `errors.Is`
View Source
var FfiConverterBoolINSTANCE = FfiConverterBool{}
View Source
var FfiConverterStringINSTANCE = FfiConverterString{}
View Source
var FfiConverterTypeArithmeticErrorINSTANCE = FfiConverterTypeArithmeticError{}
View Source
var FfiConverterUint64INSTANCE = FfiConverterUint64{}
Functions ¶
func LiftFromRustBuffer ¶
func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType
Types ¶
type ArithmeticError ¶
type ArithmeticError struct {
// contains filtered or unexported fields
}
func NewArithmeticErrorIntegerOverflow ¶
func NewArithmeticErrorIntegerOverflow() *ArithmeticError
func (ArithmeticError) Error ¶
func (err ArithmeticError) Error() string
func (ArithmeticError) Unwrap ¶
func (err ArithmeticError) Unwrap() error
type ArithmeticErrorIntegerOverflow ¶
type ArithmeticErrorIntegerOverflow struct {
// contains filtered or unexported fields
}
Variant structs
func (ArithmeticErrorIntegerOverflow) Error ¶
func (err ArithmeticErrorIntegerOverflow) Error() string
func (ArithmeticErrorIntegerOverflow) Is ¶
func (self ArithmeticErrorIntegerOverflow) Is(target error) bool
type BufLifter ¶
type BufLifter[GoType any] interface { Lift(value RustBufferI) GoType }
type BufLowerer ¶
type BufLowerer[GoType any] interface { Lower(value GoType) RustBuffer }
type FfiConverter ¶
type FfiConverterBool ¶
type FfiConverterBool struct{}
type FfiConverterString ¶
type FfiConverterString struct{}
func (FfiConverterString) Lift ¶
func (FfiConverterString) Lift(rb RustBufferI) string
func (FfiConverterString) Lower ¶
func (FfiConverterString) Lower(value string) RustBuffer
type FfiConverterTypeArithmeticError ¶
type FfiConverterTypeArithmeticError struct{}
func (FfiConverterTypeArithmeticError) Lift ¶
func (c FfiConverterTypeArithmeticError) Lift(eb RustBufferI) error
func (FfiConverterTypeArithmeticError) Lower ¶
func (c FfiConverterTypeArithmeticError) Lower(value *ArithmeticError) RustBuffer
func (FfiConverterTypeArithmeticError) Read ¶
func (c FfiConverterTypeArithmeticError) Read(reader io.Reader) error
func (FfiConverterTypeArithmeticError) Write ¶
func (c FfiConverterTypeArithmeticError) Write(writer io.Writer, value *ArithmeticError)
type FfiConverterUint64 ¶
type FfiConverterUint64 struct{}
type FfiDestroyerBool ¶
type FfiDestroyerBool struct{}
func (FfiDestroyerBool) Destroy ¶
func (FfiDestroyerBool) Destroy(_ bool)
type FfiDestroyerString ¶
type FfiDestroyerString struct{}
func (FfiDestroyerString) Destroy ¶
func (FfiDestroyerString) Destroy(_ string)
type FfiDestroyerUint64 ¶
type FfiDestroyerUint64 struct{}
func (FfiDestroyerUint64) Destroy ¶
func (FfiDestroyerUint64) Destroy(_ uint64)
type FfiRustBufConverter ¶
type FfiRustBufConverter[GoType any, FfiType any] interface { FfiConverter[GoType, FfiType] BufReader[GoType] }
type RustBuffer ¶
type RustBuffer = C.RustBuffer
func LowerIntoRustBuffer ¶
func LowerIntoRustBuffer[GoType any](bufWriter BufWriter[GoType], value GoType) RustBuffer
func RustBufferFromExternal ¶
func RustBufferFromExternal(b RustBufferI) RustBuffer
func (RustBuffer) AsReader ¶
func (cb RustBuffer) AsReader() *bytes.Reader
func (RustBuffer) Capacity ¶
func (cb RustBuffer) Capacity() int
func (RustBuffer) Data ¶
func (cb RustBuffer) Data() unsafe.Pointer
func (RustBuffer) Free ¶
func (cb RustBuffer) Free()
func (RustBuffer) Len ¶
func (cb RustBuffer) Len() int
func (RustBuffer) ToGoBytes ¶
func (cb RustBuffer) ToGoBytes() []byte
Click to show internal directories.
Click to hide internal directories.