Skip to content

Commit

Permalink
Make TryFromBytes methods not #[doc(hidden)] (#976)
Browse files Browse the repository at this point in the history
Makes progress on #5
  • Loading branch information
joshlf committed Feb 29, 2024
1 parent 26de2d3 commit 2b4e44d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,6 @@ pub unsafe trait TryFromBytes {
// TODO(#251): Require `Self: NoCell` and allow `TryFromBytes` types to
// contain `UnsafeCell`s.
#[inline]
#[doc(hidden)] // TODO(#5): Finalize name before remove this attribute.
fn try_from_ref(bytes: &[u8]) -> Option<&Self>
where
Self: KnownLayout + NoCell,
Expand Down Expand Up @@ -1367,7 +1366,6 @@ pub unsafe trait TryFromBytes {
// TODO(#251): Require `Self: NoCell` and allow `TryFromBytes` types to
// contain `UnsafeCell`s.
#[inline]
#[doc(hidden)] // TODO(#5): Finalize name before remove this attribute.
fn try_from_mut(bytes: &mut [u8]) -> Option<&mut Self>
where
Self: KnownLayout + NoCell, // TODO(#251): Remove the `NoCell` bound.
Expand Down Expand Up @@ -1401,7 +1399,6 @@ pub unsafe trait TryFromBytes {
/// [here][TryFromBytes#what-is-a-valid-instance] for a discussion of how
/// these cases are handled.
#[inline]
#[doc(hidden)] // TODO(#5): Finalize name before remove this attribute.
fn try_read_from(bytes: &[u8]) -> Option<Self>
where
Self: Sized,
Expand Down

0 comments on commit 2b4e44d

Please sign in to comment.