Skip to content

Commit 17d2dff

Browse files
committed
Reapply "Add as_str"
This reverts commit 039f401.
1 parent b99817a commit 17d2dff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ impl<S: Deref<Target = str>> ModifierSet<S> {
2828
ModifierSet(&self.0)
2929
}
3030

31+
/// Get the string of modifiers separated by `.`.
32+
pub fn as_str(&self) -> &str {
33+
&self.0
34+
}
35+
3136
/// Construct a modifier set from a string,
3237
/// where modifiers are separated by the character `.`.
3338
///

0 commit comments

Comments
 (0)