#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(nightly, feature(never_type))] #![allow(dead_code)] // some code is tested for type checking only
#[cfg(not(feature = "std"))] externcrate alloc;
#[cfg(not(feature = "std"))] use alloc::{boxed::Box, vec, vec::Vec};
// `Deref` implementation is required for `DerefMut`. impl ::core::ops::Deref for MyBoxedInt { type Target = <Box<i32> as ::core::ops::Deref>::Target; #[inline] fn deref(&self) -> &Self::Target {
<Box<i32> as ::core::ops::Deref>::deref(&self.0)
}
}
// `Deref` implementation is required for `DerefMut`. impl<T> ::core::ops::Deref for GenericBox<T> where Box<T>: ::core::ops::Deref,
{ type Target = <Box<T> as ::core::ops::Deref>::Target; #[inline] fn deref(&self) -> &Self::Target {
<Box<T> as ::core::ops::Deref>::deref(&self.0)
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.