Executes and returns fb(this.b)
if this is a CborValueBoolean, else return a Left with an error message
Executes and returns fs(this.s)
if this is a CborValueByteStr, else return a Left with an error message
Applies a function corresponding to this
's type
Applies a function corresponding to this
's type
the function to apply if this
is a CborValueString
the function to apply if this
is a CborValueByteStr
the function to apply if this
is a CborValueNumber
the function to apply if this
is a CborValueBoolean
the function to apply if this
is a CborValueNull
the results of applying the corresponding function
Executes then(this.s)
if this is a CborValueBoolean; otherwise executes else(this)
Executes then(this.s)
if this is a CborValueBoolean; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a CborValueByteStr; otherwise executes else(this)
Executes then(this.s)
if this is a CborValueByteStr; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a CborValueNumber containing an Int; otherwise executes else(this)
Executes then(this.s)
if this is a CborValueNumber containing an Int; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a CborValueNumber; otherwise executes else(this)
Executes then(this.s)
if this is a CborValueNumber; otherwise executes else(this)
4.0
Executes then(this.s)
if this is a CborValueString; otherwise executes else(this)
Executes then(this.s)
if this is a CborValueString; otherwise executes else(this)
4.0
Executes and returns fi(this.i)
if this is a CborValueNumber which holds an number convertible to integer, else return a Left with an error message.
Executes and returns fn(this.i)
if this is a CborValueNumber, else return a Left with an error message.
Executes and returns fs(this.s)
if this is a CborValueString, else return a Left with an error message
A union type representing primitive types in Cbor objects
3.1
3.0