We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 439a193 + ba38763 commit 8499fa5Copy full SHA for 8499fa5
src/lib.rs
@@ -109,16 +109,6 @@ impl<T> Ordered<T> {
109
/// This allows: `let found = map.get(Ordered::from_ref(&a));`
110
#[allow(clippy::ptr_as_ptr)]
111
pub fn from_ref(value: &T) -> &Self { unsafe { &*(value as *const _ as *const Self) } }
112
-
113
- /// Returns a reference to the inner object.
114
- ///
115
- /// We also implement [`core::borrow::Borrow`] so this function is never explicitly needed.
116
- pub const fn as_inner(&self) -> &T { &self.0 }
117
118
- /// Returns the inner object.
119
120
- /// We also implement [`core::ops::Deref`] so this function is never explicitly needed.
121
- pub fn into_inner(self) -> T { self.0 }
122
}
123
124
impl<T: ArbitraryOrd> ArbitraryOrd for &T {
0 commit comments