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 5ffcf0f commit 63ece47Copy full SHA for 63ece47
src/core/block.rs
@@ -60,6 +60,10 @@ impl BlockHash {
60
Ok(BlockHash { inner })
61
}
62
63
+
64
+ pub fn as_ref(&self) -> BlockHashRef<'_> {
65
+ unsafe { BlockHashRef::from_ptr(self.inner as *const _) }
66
+ }
67
68
69
impl AsPtr<btck_BlockHash> for BlockHash {
@@ -272,12 +276,6 @@ impl Block {
272
276
273
277
274
278
275
-impl BlockHash {
- pub fn as_ref(&self) -> BlockHashRef<'_> {
- unsafe { BlockHashRef::from_ptr(self.inner as *const _) }
- }
279
-}
280
-
281
impl AsPtr<btck_Block> for Block {
282
fn as_ptr(&self) -> *const btck_Block {
283
self.inner as *const _
0 commit comments