Module Ppx_rope_runtime

include Ppx_string_runtime.S with type t := Rope.t and type conversion := string and type length := int
val empty : Rope.t

Empty string.

val of_string : Base.string -> Rope.t

Literal string.

val convert : string -> Rope.t

Finish a conversion to t.

val pad : Rope.t -> len:int -> Rope.t

Pad to some minimum length.

val concat : Rope.t Base.list -> Rope.t

Combine multiple values in order.

val finish_one : Rope.t -> Rope.t

Called in place of concat when there is just one component, an interpolated part, in the interpolation. This function has two purposes:

1. Ensure an argument has type t in expanded code without calling concat and without needing the type t to be exported explicitly for a type annotation. See note above about destructive substitution. 2. Globalize t when using the version of the interface designed for extensions that consume locals but produce global concatenation results.