this is the method that needs to be implemented to decode.
this is the method that needs to be implemented to decode.
the object to attempt to decode an A from.
a DecodeResult with A as the success.
creates a decoder that applies this decoder and x
and returns both results together.
an alias for decode
derives a new DecodeBson by transforming decoded values using a function that produces a new DecodeBson.
derives a new DecodeBson by transforming decoded values using a function that produces a new DecodeBson.
a type
a function that produces a DecodeBson using the values produced by this one.
the decoder returned by f will be applied to to the same dbo that this decoder extracted the value it passed to f
from.
the value returned by applying that new decoder is the value that the new decoder will return.
a decooder for B
derives a new DecodeBson from this one by transforming the values decoded from this one
derives a new DecodeBson from this one by transforming the values decoded from this one
the type that f
returns
a function that transforms values produced by this DecodeBson
a DecodeBson for B
creates a decoder that first uses this decoder and then another decoder.
creates a decoder that first uses this decoder and then another decoder. has an alias |||.
a supertype of A that is common to both this decoder and x
. this is the return type of the new decoder.
a decoder that will be tried if this one fails
a decoder that returns the first successfully decoded value
creates a decoder that applies a predicate to a dbo before it tries to apply this decoder.
creates a decoder that applies a predicate to a dbo before it tries to apply this decoder.
a predicate on DBObjects.
a function that takes the DBObject that failed the predicate, and produces a DecodeError explaining what went wrong.
creates a decoder that only applies this decoder if the dbo has exactly count
fields
alias for orElse
the typeclass of things that can be decoded from DBObjects.
not certain what effect the covariance on A has.