Document PointerLike
This commit is contained in:
parent
2b3f260e74
commit
cca82fd997
1 changed files with 4 additions and 1 deletions
|
@ -871,7 +871,10 @@ pub trait Destruct {}
|
||||||
#[rustc_deny_explicit_impl]
|
#[rustc_deny_explicit_impl]
|
||||||
pub trait Tuple {}
|
pub trait Tuple {}
|
||||||
|
|
||||||
/// A marker for things
|
/// A marker for pointer-like types.
|
||||||
|
///
|
||||||
|
/// All types that have the same size and alignment as a `usize` or
|
||||||
|
/// `*const ()` automatically implement this trait.
|
||||||
#[unstable(feature = "pointer_like_trait", issue = "none")]
|
#[unstable(feature = "pointer_like_trait", issue = "none")]
|
||||||
#[cfg_attr(bootstrap, lang = "pointer_sized")]
|
#[cfg_attr(bootstrap, lang = "pointer_sized")]
|
||||||
#[cfg_attr(not(bootstrap), lang = "pointer_like")]
|
#[cfg_attr(not(bootstrap), lang = "pointer_like")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue