File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 24
24
/// assert_eq!(view.length(), 3)
25
25
/// ```
26
26
#deprecated ("use @array.View instead" )
27
+ #builtin.valtype
27
28
struct ArrayView [T ] {
28
29
buf : UninitializedArray [T ]
29
30
start : Int
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ const INT64_MAX = 0x7fffffffffffffffL
29
29
/// and consume the prefix.
30
30
/// The boolean flag `allow_underscore` is used to check validity of underscores.
31
31
fn check_and_consume_base (
32
- view : @string .StringView ,
32
+ view : @string .View ,
33
33
base : Int
34
- ) -> (Int , @string .StringView , Bool )!StrConvError {
34
+ ) -> (Int , @string .View , Bool )!StrConvError {
35
35
// if the base is not given, we need to determine it from the prefix
36
36
if base == 0 {
37
37
match view {
Original file line number Diff line number Diff line change 16
16
/// A `StringView` represents a view of a String that maintains proper Unicode
17
17
/// character boundaries. It allows safe access to a substring while handling
18
18
/// multi-byte characters correctly.
19
- /// alert deprecated "use @string.View instead"
19
+ #deprecated ("use @string.View instead" )
20
+ #builtin.valtype
20
21
struct StringView {
21
22
// # Fields
22
23
//
You can’t perform that action at this time.
0 commit comments