Struct arret_runtime::boxed::Bool[][src]

#[repr(C, align(16))]
pub struct Bool { /* fields omitted */ }

Union of boolean types

Implementations

impl Bool[src]

pub fn as_subtype(&self) -> BoolSubtype<'_>[src]

Returns a subtype of this value based on its type tag

pub fn downcast_ref<T: BoolMember>(&self) -> Option<Gc<T>>[src]

Tries to downcast this reference to a subtype based on its type tag

impl Bool[src]

pub fn singleton_ref(value: bool) -> Gc<Bool>[src]

Returns the singleton box corresponding the boolean value

pub fn as_bool(&self) -> bool[src]

Returns the unboxed value of this boolean

Trait Implementations

impl Boxed for Bool[src]

impl Debug for Bool[src]

impl DistinctTagged for Bool[src]

impl Drop for Bool[src]

impl EncodeBoxedAbiType for Bool[src]

impl HashInHeap for Bool[src]

impl PartialEqInHeap for Bool[src]

Auto Trait Implementations

impl RefUnwindSafe for Bool

impl Send for Bool

impl Sync for Bool

impl Unpin for Bool

impl UnwindSafe for Bool

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.