Import std.core.load
Saveable
interface
Public Interface Saveable
A type that gives its own Value, which Save calls in place of writing its Fields.
Examples
Struct Celsius Implements Saveable
Field Degrees: Double
Public Method ToValue(): Value => Value(Degrees)
End Struct
Expect(Save(Celsius(21.5)) == Value(21.5))-
Its Value, as Save writes it.
Report an issue with this page or with FutureBlitz on GitHub.