Type Alias rustradio::Float

source ·
pub type Float = f32;
Expand description

Float type used. Usually f32, but not guaranteed.

Trait Implementations§

source§

impl MinMax for Float

source§

fn max(&self, r: Float) -> Self

Return max of two values.
source§

fn min(&self, r: Float) -> Self

Return min of two values.
source§

impl Sample for Float

§

type Type = f32

The type of the sample.
source§

fn size() -> usize

The serialized size of one sample.
source§

fn parse(data: &[u8]) -> Result<Self::Type>

Parse one sample.
source§

fn serialize(&self) -> Vec<u8>

Serialize one sample.
source§

impl Type for Float

source§

fn type_string() -> &'static str

Return full type, or endianness prefix of the type.