1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
//^ //^ HEAD //^ //> HEAD -> SUPER use super::Log; //> HEAD -> CORE use core::borrow::Borrow; //^ //^ REFERENCES //^ //> REFERENCES -> SLICE impl<Type> AsRef<[Type]> for Log<Type> { #[inline] fn as_ref(&self) -> &[Type] {return self.data.as_ref()} } //^ //^ BORROW //^ //> BORROW -> CONSTANT impl<Type> Borrow<[Type]> for Log<Type> { #[inline] fn borrow(&self) -> &[Type] {self.as_ref()} }