init(parsing:)

Attempts to unwrap and parse an array-decoder from the given variant.

BSON.ListDecoder.swift:32
init(parsing bson: borrowing BSON.AnyValue) throws

Returns

The payload of the variant, parsed to a list decoder, if it matches list(_:) and could be successfully parsed, nil otherwise.

This method will only attempt to parse statically-typed BSON lists; it will not inspect general documents to determine if they are valid lists.