mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Use core::primitive module instead of prim@
This commit is contained in:
parent
a5726eb28d
commit
ac8d1173b5
@ -112,7 +112,7 @@ impl char {
|
|||||||
/// For an unsafe version of this function which ignores these checks, see
|
/// For an unsafe version of this function which ignores these checks, see
|
||||||
/// [`from_u32_unchecked`].
|
/// [`from_u32_unchecked`].
|
||||||
///
|
///
|
||||||
/// [`from_u32_unchecked`]: prim@char::from_u32_unchecked()
|
/// [`from_u32_unchecked`]: crate::primitive::char::from_u32_unchecked()
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -163,7 +163,7 @@ impl char {
|
|||||||
///
|
///
|
||||||
/// For a safe version of this function, see the [`from_u32`] function.
|
/// For a safe version of this function, see the [`from_u32`] function.
|
||||||
///
|
///
|
||||||
/// [`from_u32`]: prim@char::from_u32()
|
/// [`from_u32`]: crate::primitive::char::from_u32()
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -256,7 +256,7 @@ impl char {
|
|||||||
///
|
///
|
||||||
/// For a more comprehensive understanding of 'digit', see [`is_numeric()`].
|
/// For a more comprehensive understanding of 'digit', see [`is_numeric()`].
|
||||||
///
|
///
|
||||||
/// [`is_numeric()`]: prim@char::is_numeric()
|
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
@ -481,7 +481,7 @@ impl char {
|
|||||||
/// * All other characters are given hexadecimal Unicode escapes; see
|
/// * All other characters are given hexadecimal Unicode escapes; see
|
||||||
/// [`escape_unicode`].
|
/// [`escape_unicode`].
|
||||||
///
|
///
|
||||||
/// [`escape_unicode`]: prim@char::escape_unicode()
|
/// [`escape_unicode`]: crate::primitive::char::escape_unicode()
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -582,7 +582,7 @@ impl char {
|
|||||||
/// See the documentation for [`len_utf8()`] for more explanation of this
|
/// See the documentation for [`len_utf8()`] for more explanation of this
|
||||||
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
|
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
|
||||||
///
|
///
|
||||||
/// [`len_utf8()`]: prim@char::len_utf8()
|
/// [`len_utf8()`]: crate::primitive::char::len_utf8()
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -797,8 +797,8 @@ impl char {
|
|||||||
|
|
||||||
/// Returns `true` if this `char` satisfies either [`is_alphabetic()`] or [`is_numeric()`].
|
/// Returns `true` if this `char` satisfies either [`is_alphabetic()`] or [`is_numeric()`].
|
||||||
///
|
///
|
||||||
/// [`is_alphabetic()`]: prim@char::is_alphabetic()
|
/// [`is_alphabetic()`]: crate::primitive::char::is_alphabetic()
|
||||||
/// [`is_numeric()`]: prim@char::is_numeric()
|
/// [`is_numeric()`]: crate::primitive::char::is_numeric()
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -1085,8 +1085,8 @@ impl char {
|
|||||||
/// assert_eq!('❤', non_ascii.to_ascii_uppercase());
|
/// assert_eq!('❤', non_ascii.to_ascii_uppercase());
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`make_ascii_uppercase()`]: prim@char::make_ascii_uppercase()
|
/// [`make_ascii_uppercase()`]: crate::primitive::char::make_ascii_uppercase()
|
||||||
/// [`to_uppercase()`]: prim@char::to_uppercase()
|
/// [`to_uppercase()`]: crate::primitive::char::to_uppercase()
|
||||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn to_ascii_uppercase(&self) -> char {
|
pub fn to_ascii_uppercase(&self) -> char {
|
||||||
@ -1113,8 +1113,8 @@ impl char {
|
|||||||
/// assert_eq!('❤', non_ascii.to_ascii_lowercase());
|
/// assert_eq!('❤', non_ascii.to_ascii_lowercase());
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`make_ascii_lowercase()`]: prim@char::make_ascii_lowercase()
|
/// [`make_ascii_lowercase()`]: crate::primitive::char::make_ascii_lowercase()
|
||||||
/// [`to_lowercase()`]: prim@char::to_lowercase()
|
/// [`to_lowercase()`]: crate::primitive::char::to_lowercase()
|
||||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn to_ascii_lowercase(&self) -> char {
|
pub fn to_ascii_lowercase(&self) -> char {
|
||||||
@ -1160,7 +1160,7 @@ impl char {
|
|||||||
/// assert_eq!('A', ascii);
|
/// assert_eq!('A', ascii);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`to_ascii_uppercase()`]: prim@char::to_ascii_uppercase()
|
/// [`to_ascii_uppercase()`]: crate::primitive::char::to_ascii_uppercase()
|
||||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn make_ascii_uppercase(&mut self) {
|
pub fn make_ascii_uppercase(&mut self) {
|
||||||
@ -1185,7 +1185,7 @@ impl char {
|
|||||||
/// assert_eq!('a', ascii);
|
/// assert_eq!('a', ascii);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`to_ascii_lowercase()`]: prim@char::to_ascii_lowercase()
|
/// [`to_ascii_lowercase()`]: crate::primitive::char::to_ascii_lowercase()
|
||||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn make_ascii_lowercase(&mut self) {
|
pub fn make_ascii_lowercase(&mut self) {
|
||||||
|
Loading…
Reference in New Issue
Block a user