raad crate for eating and pushing bytes
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | LICENSE | 2 | ||||
| -rw-r--r-- | src/lib.rs | 6 |
3 files changed, 6 insertions, 3 deletions
@@ -14,3 +14,4 @@ keywords = ["data", "read", "write", "io"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] + @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 bendn +Copyright (c) 2026 bendn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -66,7 +66,8 @@ macro_rules! trt { note = "read to [u8; N] first and then parse it", label = "unreadable type" )] - trait Readable + #[doc(hidden)] + pub trait Readable where Self: Sized, { @@ -103,7 +104,8 @@ macro_rules! trt { note = "turn it into a &[u8] first and then write that", label = "unwritable type", )] - trait Writable { + #[doc(hidden)] + pub trait Writable { fn _w(self, to: &mut impl Write) -> Result<()>; } |