We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa02784 commit a94fdacCopy full SHA for a94fdac
src/text.rs
@@ -29,7 +29,7 @@ pub enum Align {
29
30
impl Align {
31
#[inline]
32
- fn to_str(&self) -> &str {
+ fn as_str(&self) -> &str {
33
match self {
34
Align::Left => "left",
35
Align::Center => "center",
@@ -82,7 +82,7 @@ impl Text {
82
83
set!(
84
/// Set the horizontal alignment relative to the anchor point.
85
- set_horizontalalignment, align, Align, align.to_str());
+ set_horizontalalignment, align, Align, align.as_str());
86
87
88
/// Set the rotation of the text.
0 commit comments