We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 346c148 commit 9d62a60Copy full SHA for 9d62a60
lightning-c-bindings/src/c_types/mod.rs
@@ -173,24 +173,6 @@ impl u8slice {
173
}
174
175
176
-#[repr(C)]
177
-pub struct usizeslice {
178
- pub data: *const usize,
179
- pub datalen: usize
180
-}
181
-impl usizeslice {
182
- pub(crate) fn from_slice(s: &[usize]) -> Self {
183
- Self {
184
- data: s.as_ptr(),
185
- datalen: s.len(),
186
- }
187
188
- pub(crate) fn to_slice(&self) -> &[usize] {
189
- if self.datalen == 0 { return &[]; }
190
- unsafe { std::slice::from_raw_parts(self.data, self.datalen) }
191
192
193
-
194
#[repr(C)]
195
#[derive(Copy, Clone)]
196
/// Arbitrary 32 bytes, which could represent one of a few different things. You probably want to
0 commit comments