creates a decoder that applies this decoder and x
and returns both results together.
creates a decoder that applies this decoder and x
and returns both results together.
an alias for decode
an alias for decode
alias for encode
alias for encode
derives a new encoder by transforming them into things this encoder applies to.
derives a new encoder by transforming them into things this encoder applies to.
something that can be transformed.
a function that transforms a B
into an A
an encoder for B
this is the method that needs to be implemented to decode.
this is the method that needs to be implemented to decode.
a DecodeResult with A as the success.
encodes an A into a mongo DBObject
encodes an A into a mongo DBObject
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
creates a decoder that only applies this decoder if the dbo has exactly count
fields
alias for orElse
alias for orElse
CodecBson is both an EncodeBson and a DecodeBson.
the type this codec encodes and decodes.