implement IntoAttributeValue for usize

Emmanuel Gil Peyrot created

Change summary

src/convert.rs | 6 ++++++
1 file changed, 6 insertions(+)

Detailed changes

src/convert.rs 🔗

@@ -87,6 +87,12 @@ pub trait IntoAttributeValue {
     fn into_attribute_value(self) -> Option<String>;
 }
 
+impl IntoAttributeValue for usize {
+    fn into_attribute_value(self) -> Option<String> {
+        Some(format!("{}", self))
+    }
+}
+
 impl IntoAttributeValue for String {
     fn into_attribute_value(self) -> Option<String> {
         Some(self)