= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type dst =
| Channel of out_channel
| Buffer of Buffer.t
| Manual
(*The type for output destinations.
*)
encode e v
is :
`Partial
iffe
has a`Manual
destination and needs more output storage. The client must useManual
.dst to provide a new buffer and then callencode
with`Await
until`Ok
is returned.`Ok
when the encoder is ready to encode a new`R
or`End
.
For `Manual
destinations, encoding `End
always returns `Partial
, continue with `Await
until `Ok
is returned at which point Manual.dst_rem e
is guaranteed to be the size of the last provided buffer (i.e. nothing was written).
Raises. Invalid_argument
if a non well-formed sequence of lexemes is encoded or if a `Lexeme
or `End
is encoded after a `Partial
encode.
module Manual : sig ... end
Manual destinations.