pub type GLclampf = f32;

Trait Implementations§

source§

impl FromJSValConvertible for f32

§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
source§

unsafe fn from_jsval( cx: *mut JSContext, val: Handle<'_, Value>, _option: () ) -> Result<ConversionResult<f32>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
source§

impl PartialEq<Value> for f32

source§

fn eq(&self, other: &Value) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialEq<f32> for f32

source§

fn eq(&self, other: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &f32) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.0.0 · source§

impl PartialOrd<f32> for f32

source§

fn partial_cmp(&self, other: &f32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
source§

fn lt(&self, other: &f32) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
source§

fn le(&self, other: &f32) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
source§

fn ge(&self, other: &f32) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

fn gt(&self, other: &f32) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
source§

impl<R> ReadEndian<f32> for Rwhere R: Read,

source§

fn read_from_little_endian_into(&mut self, value: &mut f32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
source§

fn read_from_big_endian_into(&mut self, value: &mut f32) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
source§

fn read_from_native_endian_into(&mut self, value: &mut T) -> Result<(), Error>

Read into the supplied reference. Acts the same as std::io::Read::read_exact.
source§

fn read_from_little_endian(&mut self) -> Result<T, Error>where T: Default,

Read the byte value of the inferred type
source§

fn read_from_big_endian(&mut self) -> Result<T, Error>where T: Default,

Read the byte value of the inferred type
source§

fn read_from_native_endian(&mut self) -> Result<T, Error>where T: Default,

Read the byte value of the inferred type
source§

impl ToJSValConvertible for f32

source§

unsafe fn to_jsval(&self, _cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
source§

impl Traceable for f32

source§

unsafe fn trace(&self, _: *mut JSTracer)

Trace self.
source§

impl<W> WriteEndian<f32> for Wwhere W: Write,

source§

fn write_as_little_endian(&mut self, value: &f32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to little endianness
source§

fn write_as_big_endian(&mut self, value: &f32) -> Result<(), Error>

Write the byte value of the specified reference, converting it to big endianness
source§

fn write_as_native_endian(&mut self, value: &T) -> Result<(), Error>

Write the byte value of the specified reference, not converting it