File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ impl<const N: usize> String<N> {
109
109
/// let s: String<12> = String::try_from("Hello").unwrap();
110
110
/// let view: &StringView = &s;
111
111
/// ```
112
+ #[ inline]
112
113
pub fn as_view ( & self ) -> & StringView {
113
114
self
114
115
}
@@ -128,6 +129,7 @@ impl<const N: usize> String<N> {
128
129
/// let mut s: String<12> = String::try_from("Hello").unwrap();
129
130
/// let view: &mut StringView = &mut s;
130
131
/// ```
132
+ #[ inline]
131
133
pub fn as_mut_view ( & mut self ) -> & mut StringView {
132
134
self
133
135
}
@@ -352,6 +354,7 @@ impl<const N: usize> String<N> {
352
354
/// assert_eq!(s, "olleh");
353
355
/// # Ok::<(), ()>(())
354
356
/// ```
357
+ #[ inline]
355
358
pub unsafe fn as_mut_vec_view ( & mut self ) -> & mut VecView < u8 > {
356
359
self . as_mut_view ( ) . as_mut_vec_view ( )
357
360
}
You can’t perform that action at this time.
0 commit comments