File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ mod sealed {
1111/// Internal trait for crate-specific usage. Contains implementation details
1212/// that should not leak through the API.
1313#[ allow( private_interfaces) ]
14- pub ( crate ) trait InternalStringType : StringType {
14+ pub trait InternalStringType : StringType {
1515 /// The offset to the data field in the sequence string struct.
1616 const DATA_OFFSET : usize ;
1717
Original file line number Diff line number Diff line change @@ -2,19 +2,21 @@ use crate::iter::CodePointsIter;
22use crate :: { JsStr , JsStringKind } ;
33use std:: ptr:: NonNull ;
44
5- pub ( crate ) mod sequence;
6- pub ( crate ) use sequence:: SequenceString ;
5+ /// Sequential string implementation.
6+ pub mod sequence;
7+ pub use sequence:: SequenceString ;
78pub ( crate ) use sequence:: { LATIN1_VTABLE , UTF16_VTABLE } ;
89
9- pub ( crate ) mod slice;
10- pub ( crate ) use slice:: SliceString ;
10+ /// Slice string implementation.
11+ pub mod slice;
12+ pub use slice:: SliceString ;
1113
1214pub ( crate ) mod r#static;
1315pub use r#static:: StaticString ;
1416
1517/// Rope string implementation.
1618pub mod rope;
17- pub ( crate ) use rope:: RopeString ;
19+ pub use rope:: RopeString ;
1820
1921/// Header for all `JsString` allocations.
2022///
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ impl Flattened {
8787/// A rope string that is a tree of other strings.
8888#[ repr( C ) ]
8989#[ derive( Debug ) ]
90- pub ( crate ) struct RopeString {
90+ pub struct RopeString {
9191 /// Standardized header for all strings.
9292 pub ( crate ) header : JsStringHeader ,
9393 pub ( crate ) left : JsString ,
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ pub(crate) static UTF16_VTABLE: JsStringVTable = JsStringVTable {
3030/// of various types cannot be used interchangeably). The string, however, could be
3131/// `Send`, although within Boa this does not make sense.
3232#[ repr( C ) ]
33- pub ( crate ) struct SequenceString < T : InternalStringType > {
33+ #[ derive( Debug ) ]
34+ pub struct SequenceString < T : InternalStringType > {
3435 /// Standardized header for all strings.
3536 pub ( crate ) header : JsStringHeader ,
3637 // Forces invariant contract.
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ pub(crate) static SLICE_VTABLE: JsStringVTable = JsStringVTable {
1414
1515/// A slice of an existing string.
1616#[ repr( C ) ]
17- pub ( crate ) struct SliceString {
17+ #[ derive( Debug ) ]
18+ pub struct SliceString {
1819 /// Standardized header for all strings.
1920 pub ( crate ) header : JsStringHeader ,
2021 // Keep this for refcounting the original string.
You can’t perform that action at this time.
0 commit comments