Skip to content

Commit ff6b56a

Browse files
committed
Add as_str
1 parent 34edb09 commit ff6b56a

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
@@ -23,6 +23,11 @@ impl<S: Deref<Target = str>> ModifierSet<S> {
2323
ModifierSet(&self.0)
2424
}
2525

26+
/// Get the string of modifiers separated by `.`.
27+
pub fn as_str(&self) -> &str {
28+
&self.0
29+
}
30+
2631
/// Construct a modifier set from a string,
2732
/// where modifiers are separated by the character `.`.
2833
///

0 commit comments

Comments
 (0)