Ruby: RStruct Struct Reference

Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)

Data Fields
RStruct Struct Reference

## Data Fields
struct RBasic | basic
union { |
struct { |
long len |
const VALUE * ptr |
VALUE fields_obj |
} heap
const VALUE ary [1] |
} | as

## Detailed Description

Definition at line 33 of file struct.h.

## Field Documentation

## ◆ ary

const VALUE RStruct::ary[1]

Definition at line 46 of file struct.h.

## ◆ basic

struct RBasic RStruct::basic

Definition at line 34 of file struct.h.

## ◆ fields_obj

VALUE RStruct::fields_obj

Definition at line 39 of file struct.h.

## ◆ len

long RStruct::len

Definition at line 37 of file struct.h.

## ◆ ptr

const VALUE* RStruct::ptr

Definition at line 38 of file struct.h.

The documentation for this struct was generated from the following file:

- internal/struct.h