// Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. //! Implementations that require `default fn`. use super::{SpecFrom, SmallVec, Array}; impl<'a, A: Array> SpecFrom for SmallVec where A::Item: Clone { #[inline] default fn spec_from(slice: &'a [A::Item]) -> SmallVec { slice.into_iter().cloned().collect() } }