class StructRef(T)
- StructRef(T)
- Reference
- Object
Overview
This class is used as a workaround for cases where we want to have a struct field that otherwise would break the rule that a struct cannot contain itself.
Basically, this lets us sort of pretend of have referential transparency by wrapping a struct in a class that forwards all methods to the struct.
Defined in:
savi/ext/struct_ref.crConstructors
Macro Summary
Instance Method Summary
- #==(other : StructRef(T))
- #==(other_value : T)
-
#hash(hasher)
See
Object#hash(hasher)
- #inspect(io)
- #pretty_print(pp)
- #to_s(io)
- #value : T
- #value=(value : T)