"Basic usage" is redundant for there is just one example
This commit is contained in:
parent
065852def0
commit
ef6a59b7a9
2 changed files with 0 additions and 42 deletions
|
@ -23,8 +23,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "Follow the rabbit";
|
/// let s: &str = "Follow the rabbit";
|
||||||
/// let ptr: *const u8 = s.as_ptr();
|
/// let ptr: *const u8 = s.as_ptr();
|
||||||
|
@ -323,8 +321,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let ptr: *const u8 = &10u8 as *const u8;
|
/// let ptr: *const u8 = &10u8 as *const u8;
|
||||||
///
|
///
|
||||||
|
@ -384,8 +380,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(ptr_as_uninit)]
|
/// #![feature(ptr_as_uninit)]
|
||||||
///
|
///
|
||||||
|
@ -449,8 +443,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "123";
|
/// let s: &str = "123";
|
||||||
/// let ptr: *const u8 = s.as_ptr();
|
/// let ptr: *const u8 = s.as_ptr();
|
||||||
|
@ -526,8 +518,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements
|
/// // Iterate using a raw pointer in increments of two elements
|
||||||
/// let data = [1u8, 2, 3, 4, 5];
|
/// let data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -908,8 +898,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "123";
|
/// let s: &str = "123";
|
||||||
/// let ptr: *const u8 = s.as_ptr();
|
/// let ptr: *const u8 = s.as_ptr();
|
||||||
|
@ -993,8 +981,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "123";
|
/// let s: &str = "123";
|
||||||
///
|
///
|
||||||
|
@ -1072,8 +1058,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements
|
/// // Iterate using a raw pointer in increments of two elements
|
||||||
/// let data = [1u8, 2, 3, 4, 5];
|
/// let data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -1152,8 +1136,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements (backwards)
|
/// // Iterate using a raw pointer in increments of two elements (backwards)
|
||||||
/// let data = [1u8, 2, 3, 4, 5];
|
/// let data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -1359,7 +1341,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(pointer_is_aligned)]
|
/// #![feature(pointer_is_aligned)]
|
||||||
/// #![feature(pointer_byte_offsets)]
|
/// #![feature(pointer_byte_offsets)]
|
||||||
|
@ -1482,7 +1463,6 @@ impl<T: ?Sized> *const T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(pointer_is_aligned)]
|
/// #![feature(pointer_is_aligned)]
|
||||||
/// #![feature(pointer_byte_offsets)]
|
/// #![feature(pointer_byte_offsets)]
|
||||||
|
|
|
@ -22,8 +22,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let mut s = [1, 2, 3];
|
/// let mut s = [1, 2, 3];
|
||||||
/// let ptr: *mut u32 = s.as_mut_ptr();
|
/// let ptr: *mut u32 = s.as_mut_ptr();
|
||||||
|
@ -332,8 +330,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let ptr: *mut u8 = &mut 10u8 as *mut u8;
|
/// let ptr: *mut u8 = &mut 10u8 as *mut u8;
|
||||||
///
|
///
|
||||||
|
@ -396,8 +392,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(ptr_as_uninit)]
|
/// #![feature(ptr_as_uninit)]
|
||||||
///
|
///
|
||||||
|
@ -461,8 +455,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let mut s = [1, 2, 3];
|
/// let mut s = [1, 2, 3];
|
||||||
/// let ptr: *mut u32 = s.as_mut_ptr();
|
/// let ptr: *mut u32 = s.as_mut_ptr();
|
||||||
|
@ -539,8 +531,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements
|
/// // Iterate using a raw pointer in increments of two elements
|
||||||
/// let mut data = [1u8, 2, 3, 4, 5];
|
/// let mut data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -660,8 +650,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let mut s = [1, 2, 3];
|
/// let mut s = [1, 2, 3];
|
||||||
/// let ptr: *mut u32 = s.as_mut_ptr();
|
/// let ptr: *mut u32 = s.as_mut_ptr();
|
||||||
|
@ -1010,8 +998,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "123";
|
/// let s: &str = "123";
|
||||||
/// let ptr: *const u8 = s.as_ptr();
|
/// let ptr: *const u8 = s.as_ptr();
|
||||||
|
@ -1095,8 +1081,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// let s: &str = "123";
|
/// let s: &str = "123";
|
||||||
///
|
///
|
||||||
|
@ -1174,8 +1158,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements
|
/// // Iterate using a raw pointer in increments of two elements
|
||||||
/// let data = [1u8, 2, 3, 4, 5];
|
/// let data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -1254,8 +1236,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
///
|
|
||||||
/// ```
|
/// ```
|
||||||
/// // Iterate using a raw pointer in increments of two elements (backwards)
|
/// // Iterate using a raw pointer in increments of two elements (backwards)
|
||||||
/// let data = [1u8, 2, 3, 4, 5];
|
/// let data = [1u8, 2, 3, 4, 5];
|
||||||
|
@ -1627,7 +1607,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(pointer_is_aligned)]
|
/// #![feature(pointer_is_aligned)]
|
||||||
/// #![feature(pointer_byte_offsets)]
|
/// #![feature(pointer_byte_offsets)]
|
||||||
|
@ -1752,7 +1731,6 @@ impl<T: ?Sized> *mut T {
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// Basic usage:
|
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(pointer_is_aligned)]
|
/// #![feature(pointer_is_aligned)]
|
||||||
/// #![feature(pointer_byte_offsets)]
|
/// #![feature(pointer_byte_offsets)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue