We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e15e7 commit 63dccc0Copy full SHA for 63dccc0
src/from_bytes.rs
@@ -18,7 +18,8 @@ pub unsafe trait FromBytes<T> {
18
///
19
/// # Safety
20
21
- /// <TODO>
+ /// The caller must ensure that `bytes` contains a valid representation of
22
+ /// the implementing type.
23
unsafe fn from_bytes_unchecked(bytes: &[u8]) -> T;
24
}
25
src/types/str.rs
@@ -26,7 +26,7 @@ impl<const MAX_SIZE: usize> Str<MAX_SIZE> {
26
27
/// Tries to convert to a `&str` if it is valid UTF-8.
28
29
- /// Behaves like [`core::from_utf8`].
+ /// Behaves like [`core::str::from_utf8`].
30
#[inline]
31
pub fn as_str(&self) -> Result<&str, TranslationError> {
32
let end_index = self
0 commit comments