diff --git a/src/array_string.rs b/src/array_string.rs
index c1154c3..523c58f 100644
--- a/src/array_string.rs
+++ b/src/array_string.rs
@@ -67,6 +67,10 @@ impl ArrayString
}
}
+ /// Return the length of the string.
+ #[inline]
+ pub fn len(&self) -> usize { self.len.to_usize() }
+
/// Create a new `ArrayString` from a `str`.
///
/// Capacity is inferred from the type parameter.