Skip to content

Commit

Permalink
Rollup merge of rust-lang#87585 - GuillaumeGomez:char-types-doc, r=jo…
Browse files Browse the repository at this point in the history
…shtriplett

Add missing links for core::char types
  • Loading branch information
JohnTitor authored Jul 30, 2021
2 parents 1757d6b + cf0f502 commit 6e61383
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/core/src/char/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ use crate::fmt;
use super::from_u32_unchecked;

/// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s.
///
/// This `struct` is created by the [`decode_utf16`] method on [`char`]. See its
/// documentation for more.
///
/// [`decode_utf16`]: char::decode_utf16
#[stable(feature = "decode_utf16", since = "1.9.0")]
#[derive(Clone, Debug)]
pub struct DecodeUtf16<I>
Expand All @@ -16,6 +21,8 @@ where
}

/// An error that can be returned when decoding UTF-16 code points.
///
/// This `struct` is created when using the [`DecodeUtf16`] type.
#[stable(feature = "decode_utf16", since = "1.9.0")]
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct DecodeUtf16Error {
Expand Down

0 comments on commit 6e61383

Please sign in to comment.