Skip to content

Commit f21309a

Browse files
committed
docs: fix rustdoc intra-doc links for private items
1 parent 81c1069 commit f21309a

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

core/string/src/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

core/string/src/vtable/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ use crate::iter::CodePointsIter;
22
use crate::{JsStr, JsStringKind};
33
use 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;
78
pub(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

1214
pub(crate) mod r#static;
1315
pub use r#static::StaticString;
1416

1517
/// Rope string implementation.
1618
pub mod rope;
17-
pub(crate) use rope::RopeString;
19+
pub use rope::RopeString;
1820

1921
/// Header for all `JsString` allocations.
2022
///

core/string/src/vtable/rope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

core/string/src/vtable/sequence.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

core/string/src/vtable/slice.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)