Next: , Up: built-in structs   [Contents][Index]


6.20.1 The <struct> type

Core Type: <struct>
Parent Type: <top>

Type of struct objects. There is no constructor. The type predicate is struct?.

Constructor on <struct>: <struct> type-constructor stru

Validate stru as struct object and return it.

Type predicate on <struct>: <boolean> type-predicate obj

The type predicate is struct?.

Equality predicate on <struct>: <boolean> equality-predicate this {stru <struct>}

The equality predicate is struct=?.

Hash function on <struct>: <non-negative-fixnum> hash-function this

The hash function is struct-hash.

Methods: inspection

Method on <struct>: <struct-type-descriptor> std this

Apply struct-std to the instance and return its return value.

Method on <struct>: <nestring> name this

Apply struct-name to the instance and return its return value.

Method on <struct>: <non-negative-fixnum> length this

Apply struct-length to the instance and return its return value.

Method on <struct>: (list-of <symbol>) field-names this

Apply struct-field-names to the instance and return its return value.

Method on <struct>: <type-printer> printer this

Apply struct-printer to the instance and return its return value.

Method on <struct>: <type-destructor> destructor this

Apply struct-destructor to the instance and return its return value.

Methods: comparison

Method on <struct>: <boolean> = this {stru <struct>} …

Apply struct=? to the arguments and return its return value.

Method on <struct>: <boolean> != this {stru <struct>} …

Apply struct!=? to the arguments and return its return value.

Methods: accessors and mutators

Method on <struct>: <top> ref this {idx <non-negative-fixnum>}

Apply struct-ref to the arguments and return its return value.

Method on <struct>: () set! this {idx <non-negative-fixnum>} obj

Apply struct-set! to the arguments and return its return value.

Method on <struct>: () reset this

Apply struct-reset! to the arguments and return its return value.


Next: , Up: built-in structs   [Contents][Index]