smartstring/casts.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5use crate::{boxed::BoxedString, inline::InlineString};
6
7pub(crate) enum StringCast<'a> {
8 Boxed(&'a BoxedString),
9 Inline(&'a InlineString),
10}
11
12pub(crate) enum StringCastMut<'a> {
13 Boxed(&'a mut BoxedString),
14 Inline(&'a mut InlineString),
15}
16
17pub(crate) enum StringCastInto {
18 Boxed(BoxedString),
19 Inline(InlineString),
20}