@@ -49,34 +49,34 @@ impl NonEmptyString {
49
49
delegate ! {
50
50
to self . 0 {
51
51
/// Is forwarded to the inner String.
52
- /// See [`std::string:: String::into_bytes`]
52
+ /// See [`String::into_bytes`]
53
53
pub fn into_bytes( self ) -> Vec <u8 >;
54
54
55
55
/// Is forwarded to the inner String.
56
- /// See [`std::string:: String::as_str`]
56
+ /// See [`String::as_str`]
57
57
pub fn as_str( & self ) -> & str ;
58
58
59
59
/// Is forwarded to the inner String.
60
- /// See [`std::string:: String::push_str`]
60
+ /// See [`String::push_str`]
61
61
pub fn push_str( & mut self , string: & str ) ;
62
62
63
63
/// Is forwarded to the inner String.
64
- /// See [`std::string:: String::capacity`]
64
+ /// See [`String::capacity`]
65
65
pub fn capacity( & self ) -> usize ;
66
66
67
67
/// Is forwarded to the inner String.
68
- /// See [`std::string:: String::reserve`]
68
+ /// See [`String::reserve`]
69
69
pub fn reserve( & mut self , additional: usize ) ;
70
70
71
71
/// Is forwarded to the inner String.
72
- /// See [`std::string:: String::reserve_exact`]
72
+ /// See [`String::reserve_exact`]
73
73
pub fn reserve_exact( & mut self , additional: usize ) ;
74
74
75
75
// For some reason we cannot delegate the following:
76
76
// pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
77
77
78
78
/// Is forwarded to the inner String.
79
- /// See [`std::string:: String::try_reserve_exact`]
79
+ /// See [`String::try_reserve_exact`]
80
80
pub fn try_reserve_exact(
81
81
& mut self ,
82
82
additional: usize
@@ -87,31 +87,31 @@ impl NonEmptyString {
87
87
pub fn shrink_to_fit( & mut self ) ;
88
88
89
89
/// Is forwarded to the inner String.
90
- /// See [`std::string:: String::shrink_to`]
90
+ /// See [`String::shrink_to`]
91
91
pub fn shrink_to( & mut self , min_capacity: usize ) ;
92
92
93
93
/// Is forwarded to the inner String.
94
- /// See [`std::string:: String::push`]
94
+ /// See [`String::push`]
95
95
pub fn push( & mut self , ch: char ) ;
96
96
97
97
/// Is forwarded to the inner String.
98
- /// See [`std::string:: String::as_bytes`]
98
+ /// See [`String::as_bytes`]
99
99
pub fn as_bytes( & self ) -> & [ u8 ] ;
100
100
101
101
/// Is forwarded to the inner String.
102
- /// See [`std::string:: String::insert`]
102
+ /// See [`String::insert`]
103
103
pub fn insert( & mut self , idx: usize , ch: char ) ;
104
104
105
105
/// Is forwarded to the inner String.
106
- /// See [`std::string:: String::insert_str`]
106
+ /// See [`String::insert_str`]
107
107
pub fn insert_str( & mut self , idx: usize , string: & str ) ;
108
108
109
109
/// Is forwarded to the inner String.
110
- /// See [`std::string:: String::len`]
110
+ /// See [`String::len`]
111
111
pub fn len( & self ) -> usize ;
112
112
113
113
/// Is forwarded to the inner String.
114
- /// See [`std::string:: String::into_boxed_str`]
114
+ /// See [`String::into_boxed_str`]
115
115
pub fn into_boxed_str( self ) -> Box <str >;
116
116
}
117
117
}
0 commit comments