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, K: DeepView + DeepViewClone + Hash + Eq> ToRef<&'a HashSet<K>> for &'a HashSet<K>
Impls for shared traits
impl<'a, K: DeepView + DeepViewClone + Hash + Eq> ToRef<&'a HashSet<K>> for &'a HashSet<K>
Impls for shared traits
Source§impl<'a, K: DeepView + DeepViewClone + Hash + Eq, V: DeepView + DeepViewClone> ToRef<&'a HashMap<K, V>> for &'a HashMap<K, V>
Impls for shared traits
impl<'a, K: DeepView + DeepViewClone + Hash + Eq, V: DeepView + DeepViewClone> ToRef<&'a HashMap<K, V>> for &'a HashMap<K, V>
Impls for shared traits
Source§impl<'a, T0: Sized + DeepView, T1: Sized + DeepView, T2: Sized + DeepView> ToRef<&'a (T0, T1, T2)> for &'a (T0, T1, T2)
impl<'a, T0: Sized + DeepView, T1: Sized + DeepView, T2: Sized + DeepView> ToRef<&'a (T0, T1, T2)> for &'a (T0, T1, T2)
Source§exec fn get_ref(self) -> &'a (T0, T1, T2)
exec fn get_ref(self) -> &'a (T0, T1, T2)
Source§impl<'a, T0: Sized + DeepView, T1: Sized + DeepView, T2: Sized + DeepView, T3: Sized + DeepView> ToRef<&'a (T0, T1, T2, T3)> for &'a (T0, T1, T2, T3)
impl<'a, T0: Sized + DeepView, T1: Sized + DeepView, T2: Sized + DeepView, T3: Sized + DeepView> ToRef<&'a (T0, T1, T2, T3)> for &'a (T0, T1, T2, T3)
Source§exec fn get_ref(self) -> &'a (T0, T1, T2, T3)
exec fn get_ref(self) -> &'a (T0, T1, T2, T3)
Source§impl<'a, T: DeepView> ToRef<&'a [T]> for &'a Vec<T>
Impls for shared traits
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>
Impls for shared traits
NOTE: can’t implement ExecSpecType for Seq<T>
since it conflicts with SpecString (i.e., Seq<char>).