Documentation
¶
Index ¶
- Variables
- func Type_Option_() _dafny.TypeDescriptor
- func Type_Outcome_() _dafny.TypeDescriptor
- func Type_Result_(Type_T_ _dafny.TypeDescriptor) _dafny.TypeDescriptor
- type CompanionStruct_Default___
- type CompanionStruct_Option_
- type CompanionStruct_Outcome_
- type CompanionStruct_Result_
- type Data_Option_
- type Data_Outcome_
- type Data_Result_
- type Default__
- type Dummy__
- type Option
- func (_this Option) Dtor_value() interface{}
- func (_this Option) Equals(other Option) bool
- func (_this Option) EqualsGeneric(other interface{}) bool
- func (_this Option) Extract() interface{}
- func (_this Option) Get_() Data_Option_
- func (_this Option) IsFailure() bool
- func (_this Option) Is_None() bool
- func (_this Option) Is_Some() bool
- func (_this Option) ParentTraits_() []*_dafny.TraitID
- func (_this Option) PropagateFailure() Option
- func (_this Option) String() string
- func (_this Option) ToResult() Result
- func (_this Option) ToResult_k(error_ interface{}) Result
- func (_this Option) UnwrapOr(default_ interface{}) interface{}
- type Option_None
- type Option_Some
- type Outcome
- func (_this Outcome) Dtor_error() interface{}
- func (_this Outcome) Equals(other Outcome) bool
- func (_this Outcome) EqualsGeneric(other interface{}) bool
- func (_this Outcome) Get_() Data_Outcome_
- func (_this Outcome) IsFailure() bool
- func (_this Outcome) Is_Fail() bool
- func (_this Outcome) Is_Pass() bool
- func (_this Outcome) ParentTraits_() []*_dafny.TraitID
- func (_this Outcome) PropagateFailure() Result
- func (_this Outcome) String() string
- type Outcome_Fail
- type Outcome_Pass
- type Result
- func (_this Result) Dtor_error() interface{}
- func (_this Result) Dtor_value() interface{}
- func (_this Result) Equals(other Result) bool
- func (_this Result) EqualsGeneric(other interface{}) bool
- func (_this Result) Extract() interface{}
- func (_this Result) Get_() Data_Result_
- func (_this Result) IsFailure() bool
- func (_this Result) Is_Failure() bool
- func (_this Result) Is_Success() bool
- func (_this Result) MapFailure(reWrap func(interface{}) interface{}) Result
- func (_this Result) ParentTraits_() []*_dafny.TraitID
- func (_this Result) PropagateFailure() Result
- func (_this Result) String() string
- func (_this Result) ToOption() Option
- func (_this Result) UnwrapOr(default_ interface{}) interface{}
- type Result_Failure
- type Result_Success
Constants ¶
This section is empty.
Variables ¶
View Source
var Companion_Default___ = CompanionStruct_Default___{}
View Source
var Companion_Option_ = CompanionStruct_Option_{}
View Source
var Companion_Outcome_ = CompanionStruct_Outcome_{}
View Source
var Companion_Result_ = CompanionStruct_Result_{}
Functions ¶
func Type_Option_ ¶
func Type_Option_() _dafny.TypeDescriptor
func Type_Outcome_ ¶
func Type_Outcome_() _dafny.TypeDescriptor
func Type_Result_ ¶
func Type_Result_(Type_T_ _dafny.TypeDescriptor) _dafny.TypeDescriptor
Types ¶
type CompanionStruct_Default___ ¶
type CompanionStruct_Default___ struct { }
func (*CompanionStruct_Default___) Need ¶
func (_static *CompanionStruct_Default___) Need(condition bool, error_ interface{}) Outcome
type CompanionStruct_Option_ ¶
type CompanionStruct_Option_ struct { }
func (CompanionStruct_Option_) Create_None_ ¶
func (CompanionStruct_Option_) Create_None_() Option
func (CompanionStruct_Option_) Create_Some_ ¶
func (CompanionStruct_Option_) Create_Some_(Value interface{}) Option
func (CompanionStruct_Option_) Default ¶
func (CompanionStruct_Option_) Default() Option
type CompanionStruct_Outcome_ ¶
type CompanionStruct_Outcome_ struct { }
func (CompanionStruct_Outcome_) Create_Fail_ ¶
func (CompanionStruct_Outcome_) Create_Fail_(Error interface{}) Outcome
func (CompanionStruct_Outcome_) Create_Pass_ ¶
func (CompanionStruct_Outcome_) Create_Pass_() Outcome
func (CompanionStruct_Outcome_) Default ¶
func (CompanionStruct_Outcome_) Default() Outcome
type CompanionStruct_Result_ ¶
type CompanionStruct_Result_ struct { }
func (CompanionStruct_Result_) Create_Failure_ ¶
func (CompanionStruct_Result_) Create_Failure_(Error interface{}) Result
func (CompanionStruct_Result_) Create_Success_ ¶
func (CompanionStruct_Result_) Create_Success_(Value interface{}) Result
func (CompanionStruct_Result_) Default ¶
func (CompanionStruct_Result_) Default(_default_T interface{}) Result
type Data_Option_ ¶
type Data_Option_ interface {
// contains filtered or unexported methods
}
type Data_Outcome_ ¶
type Data_Outcome_ interface {
// contains filtered or unexported methods
}
type Data_Result_ ¶
type Data_Result_ interface {
// contains filtered or unexported methods
}
type Default__ ¶
type Default__ struct {
// contains filtered or unexported fields
}
Definition of class Default__
func New_Default___ ¶
func New_Default___() *Default__
func (*Default__) EqualsGeneric ¶
func (*Default__) ParentTraits_ ¶
type Option ¶
type Option struct {
Data_Option_
}
Definition of datatype Option
func (Option) Dtor_value ¶
func (_this Option) Dtor_value() interface{}
func (Option) EqualsGeneric ¶
func (Option) Get_ ¶
func (_this Option) Get_() Data_Option_
func (Option) ParentTraits_ ¶
func (Option) PropagateFailure ¶
func (Option) ToResult_k ¶
type Option_None ¶
type Option_None struct { }
type Option_Some ¶
type Option_Some struct {
Value interface{}
}
type Outcome ¶
type Outcome struct {
Data_Outcome_
}
Definition of datatype Outcome
func (Outcome) Dtor_error ¶
func (_this Outcome) Dtor_error() interface{}
func (Outcome) EqualsGeneric ¶
func (Outcome) Get_ ¶
func (_this Outcome) Get_() Data_Outcome_
func (Outcome) ParentTraits_ ¶
func (Outcome) PropagateFailure ¶
type Outcome_Fail ¶
type Outcome_Fail struct {
Error interface{}
}
type Outcome_Pass ¶
type Outcome_Pass struct { }
type Result ¶
type Result struct {
Data_Result_
}
Definition of datatype Result
func (Result) Dtor_error ¶
func (_this Result) Dtor_error() interface{}
func (Result) Dtor_value ¶
func (_this Result) Dtor_value() interface{}
func (Result) EqualsGeneric ¶
func (Result) Get_ ¶
func (_this Result) Get_() Data_Result_
func (Result) Is_Failure ¶
func (Result) Is_Success ¶
func (Result) MapFailure ¶
func (Result) ParentTraits_ ¶
func (Result) PropagateFailure ¶
type Result_Failure ¶
type Result_Failure struct {
Error interface{}
}
type Result_Success ¶
type Result_Success struct {
Value interface{}
}
Click to show internal directories.
Click to hide internal directories.