django_reflect

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RConvert

func RConvert(v *reflect.Value, t reflect.Type) (*reflect.Value, bool)

RConvert converts a reflect.Value to a different type.

If the value is not convertible to the type, the original value is returned.

If the pointer of `v` is invalid, a new value of type `t` is created, and the pointer is set to it, then the pointer is returned.

func RSet

func RSet(src, dst *reflect.Value, convert bool) bool

RSet sets a value from one reflect.Value to another.

If the destination value is not settable, this function will return false.

If the source value is not immediately assignable to the destination value, and the convert parameter is true, the source value will be converted to the destination value's type.

If the source value is not immediately assignable to the destination value, and the convert parameter is false, this function will return false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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