Skip to main content

f32_array

Function f32_array 

Source
pub fn f32_array<S: Serializer, T>(
    data: &[T],
    serializer: S,
) -> Result<S::Ok, S::Error>
where T: ComplexElement<Component = f32>,
Expand description

Serialize a slice of complex f32 as one BEVE complex array.

Takes any ComplexElement whose Component is this scalar — Complex, num_complex::Complex under the num-complex feature, or your own type. The component is part of the bound, so a same-width class cannot slip through.