From b613bc48c2efaf77514b66973267cf9df0139393 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Sun, 5 Apr 2020 17:30:38 -0700 Subject: [PATCH] Make ToSmallVec trait public --- lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib.rs b/lib.rs index c935894..1fc0088 100644 --- a/lib.rs +++ b/lib.rs @@ -1697,7 +1697,9 @@ impl_array!( 0x40000, 0x60000, 0x80000, 0x10_0000 ); -trait ToSmallVec { +/// Convenience trait for constructing a `SmallVec` +pub trait ToSmallVec { + /// Construct a new `SmallVec` from a slice. fn to_smallvec(&self) -> SmallVec; }