Skip to content
FutureBlitz

    Install

    Import std.core.load

    Saveable

    std.core.load

    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))

    std/core/load.fb, line 90

    • Method ToValue(): Value method #

      Its Value, as Save writes it.

    Report an issue with this page or with FutureBlitz on GitHub.