src/instance.rs

changeset 203
ad16acf47726
parent 173
102421d462d1
equal deleted inserted replaced
202:7a1f1f6f34b5 203:ad16acf47726
255 self 255 self
256 } 256 }
257 257
258 #[inline] 258 #[inline]
259 fn clone_owned(&self) -> Self::OwnedVariant { 259 fn clone_owned(&self) -> Self::OwnedVariant {
260 *self 260 (*self).clone()
261 } 261 }
262 262
263 #[inline] 263 #[inline]
264 fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant> where Self : 'b { 264 fn cow_owned<'b>(self) -> $crate::instance::MyCow<'b, Self::OwnedVariant> where Self : 'b {
265 MyCow::Owned(self) 265 $crate::instance::MyCow::Owned(self)
266 } 266 }
267 267
268 #[inline] 268 #[inline]
269 fn ref_cow_owned<'b>(&self) -> MyCow<'b, Self::OwnedVariant> where Self : 'b { 269 fn ref_cow_owned<'b>(&self) -> $crate::instance::MyCow<'b, Self::OwnedVariant> where Self : 'b {
270 MyCow::Owned(*self) 270 $crate::instance::MyCow::Owned((*self).clone())
271 } 271 }
272 } 272 }
273 }; 273 };
274 } 274 }
275 275

mercurial