[][src]Struct once_cell::race::OnceBool

pub struct OnceBool { /* fields omitted */ }

Implementations

impl OnceBool[src]

pub const fn new() -> OnceBool[src]

pub fn get(&self) -> Option<bool>[src]

pub fn set(&self, value: bool) -> Result<(), ()>[src]

pub fn get_or_init<F>(&self, f: F) -> bool where
    F: FnOnce() -> bool
[src]

pub fn get_or_try_init<F, E>(&self, f: F) -> Result<bool, E> where
    F: FnOnce() -> Result<bool, E>, 
[src]

Trait Implementations

impl Debug for OnceBool[src]

impl Default for OnceBool[src]

Auto Trait Implementations

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.