Skip to main content

Float

Type Alias Float 

Source
pub type Float = f32;
Expand description

Float type used. Usually f32, but not guaranteed.

Trait Implementations§

Source§

impl Clamp for Float

Source§

fn clamp(&self, mi: Float, mx: Float) -> Self

Return clamped value.
Source§

impl Sample for Float

Source§

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. Read more
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.