pub const Weights = extern struct
ptr: [*]const Weight
len: usize
pub fn toSlice(s: Weights) []const Weight
pub fn fromSlice(s: []const Weight) Weights
235 236 237 238 239 240 241 242 243 244 245 246
pub const Weights = extern struct { ptr: [*]const Weight, len: usize, pub fn toSlice(s: Weights) []const Weight { return s.ptr[0..s.len]; } pub fn fromSlice(s: []const Weight) Weights { return .{ .ptr = s.ptr, .len = s.len }; } }