We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51f8d08 commit 0d0dec2Copy full SHA for 0d0dec2
1 file changed
src/lib.rs
@@ -68,6 +68,10 @@ impl<T> Trailer<T> {
68
)
69
}
70
71
+
72
+ pub fn capacity(&self) -> usize {
73
+ self.size - mem::size_of::<T>()
74
+ }
75
76
77
impl<T> Drop for Trailer<T> {
0 commit comments