pub type GLboolean = bool;

Trait Implementations§

source§

impl From<EventBubbles> for bool

source§

fn from(bubbles: EventBubbles) -> Self

Converts to this type from the input type.
source§

impl From<EventCancelable> for bool

source§

fn from(bubbles: EventCancelable) -> Self

Converts to this type from the input type.
source§

impl FromJSValConvertible for bool

§

type Config = ()

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

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

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.
1.0.0 · source§

impl Ord for bool

source§

fn cmp(&self, other: &bool) -> Ordering

This method returns an Ordering between self and other. Read more
source§

fn min(self, other: bool) -> bool

Compares and returns the minimum of two values. Read more
source§

fn max(self, other: bool) -> bool

Compares and returns the maximum of two values. Read more
source§

fn clamp(self, min: bool, max: bool) -> bool

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Value> for bool

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<bool> for bool

source§

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

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

fn ne(&self, other: &bool) -> 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<bool> for bool

source§

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

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

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

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

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

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

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

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

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

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

impl ToJSValConvertible for bool

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 bool

source§

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

Trace self.
1.0.0 · source§

impl Eq for bool