Skip to content

Commit

Permalink
[ISSUE #15]Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rust-learn-now authored Nov 7, 2024
1 parent 2105eab commit 4063000
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cheetah_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ impl CheetahString {
}
}

/// The `InnerString` enum represents different types of string storage.
///
/// Variants:
///
/// * `ArcString(Arc<String>)` - A reference-counted string.
/// * `StaticStr(&'static str)` - A static string slice.
/// * `Bytes(bytes::Bytes)` - A byte buffer (available when the "bytes" feature is enabled).
/// * `Empty` - An empty string.
#[derive(Clone)]
pub(super) enum InnerString {
ArcString(Arc<String>),
Expand Down

0 comments on commit 4063000

Please sign in to comment.