On this page:
struct
struct/ ctc
struct~r
struct~r/ ctc
struct~s
struct~s/ ctc

 (require mzlib/unit)

NOTE: This library is deprecated. Use racket/unit instead.

The mzlib/unit library mostly re-provides racket/unit, except for struct and struct/ctc from racket/unit.

syntax

(struct id (field-id ...) omit-decl ...)

 
omit-decl = -type
  | -selectors
  | -setters
  | -constructor
A signature form like struct from racket/base, but with a different syntax for options that limit exports.

syntax

(struct/ctc id ([field-id contract-expr] ...) omit-decl ...)

 
omit-decl = -type
  | -selectors
  | -setters
  | -constructor
A signature form like struct/ctc from racket/unit, but with a different syntax for the options that limit exports.

The same as struct from racket/base and struct/ctc from racket/unit.

Like struct~r and struct~r/ctc, but the constructor is named the same as the type, instead of with make- prefix.