10 |
// (which we are)
|
11 |
#[allow(clippy::transmute_undefined_repr)]
|
12 |
unsafe {
|
18 |
let ptr = buf.as_slice().as_ptr() as usize;
|
19 |
#[allow(clippy::transmute_undefined_repr)]
|
20 |
let reinterpreted_buf = unsafe { std::mem::transmute::<_, Buffer<u16>>(buf) };
|
48 |
let ptr = buf.as_slice().as_ptr() as usize;
|
49 |
#[allow(clippy::transmute_undefined_repr)]
|
50 |
let reinterpreted_buf = unsafe { std::mem::transmute::<_, Buffer<u8>>(buf) };
|
90 |
let ptr = buf.as_slice().as_ptr() as usize;
|
91 |
#[allow(clippy::transmute_undefined_repr)]
|
92 |
let reinterpreted_buf = unsafe { std::mem::transmute::<_, Buffer<u64>>(buf) };
|
126 |
let ptr = buf.as_slice().as_ptr() as usize;
|
127 |
#[allow(clippy::transmute_undefined_repr)]
|
128 |
let reinterpreted_buf = unsafe { std::mem::transmute::<_, Buffer<u32>>(buf) };
|
163 |
let ptr = buf.as_slice().as_ptr() as usize;
|
164 |
#[allow(clippy::transmute_undefined_repr)]
|
165 |
let reinterpreted_buf = unsafe { std::mem::transmute::<_, Buffer<i64>>(buf) };
|
239 |
// we are guarded by the type system here.
|
240 |
#[allow(clippy::transmute_undefined_repr)]
|
241 |
let series_cols = unsafe { std::mem::transmute::<Vec<S>, Vec<Series>>(columns) };
|
57 |
// a trait object, therefore this is sound.
|
58 |
#[allow(clippy::transmute_undefined_repr)]
|
59 |
let (data_ptr, _vtable_ptr) =
|
394 |
clippy::toplevel_ref_arg,
|
395 |
clippy::transmute_undefined_repr, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8417
|
396 |
clippy::useless_let_if_seq,
|