Relative Content

Tag Archive for rust

How can I write an efficient builder in Rust?

Lets say I want to write a type that builds a fairly large string (lets say of html) then returns it without copying or cloning the string. Is there a way that I can implement an unwrap function that will prevent further access to the builder.

How can I write an efficient builder in Rust?

Lets say I want to write a type that builds a fairly large string (lets say of html) then returns it without copying or cloning the string. Is there a way that I can implement an unwrap function that will prevent further access to the builder.