Latin1JsStringBuilder

Type Alias Latin1JsStringBuilder 

Source
pub type Latin1JsStringBuilder = JsStringBuilder<u8>;
Expand description

Latin1 encoded JsStringBuilder

§Warning

If you are not sure the characters that will be added and don’t want to preprocess them, use CommonJsStringBuilder instead.

§Examples

use boa_string::Latin1JsStringBuilder;
let mut s = Latin1JsStringBuilder::new();
s.push(b'x');
s.extend_from_slice(&[b'1', b'2', b'3']);
s.extend([b'1', b'2', b'3']);
let js_string = s.build();

Aliased Type§

pub struct Latin1JsStringBuilder { /* private fields */ }