pub trait ToRef<T: Sized + DeepView>: Sized + DeepView<V = T::V> {
// Required method
exec fn get_ref(self) -> res : T;
}
Expand description
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'a, T1: Sized + DeepView, T2: Sized + DeepView> ToRef<&'a (T1, T2)> for &'a (T1, T2)
TODO: generalize to more tuple types
impl<'a, T1: Sized + DeepView, T2: Sized + DeepView> ToRef<&'a (T1, T2)> for &'a (T1, T2)
TODO: generalize to more tuple types
Source§impl<'a, T: DeepView> ToRef<&'a [T]> for &'a Vec<T>
NOTE: can’t implement ExecSpecType
for Seq<T>
since it conflicts with SpecString
(i.e., Seq<char>
).
impl<'a, T: DeepView> ToRef<&'a [T]> for &'a Vec<T>
NOTE: can’t implement ExecSpecType
for Seq<T>
since it conflicts with SpecString
(i.e., Seq<char>
).