pub struct Bool<const B: bool>;Expand description
Helper type for selecting storage types from compile-time bool constants.
Trait Implementations§
Source§impl AccountingSelector for Bool<true>
impl AccountingSelector for Bool<true>
Source§type Storage = AccountingStorageEnabled
type Storage = AccountingStorageEnabled
Selected accounting storage type.
Source§impl AccountingSelector for Bool<false>
impl AccountingSelector for Bool<false>
Source§type Storage = AccountingStorageDisabled
type Storage = AccountingStorageDisabled
Selected accounting storage type.
Source§impl<C: Copy> TracingSelector<C> for Bool<true>
impl<C: Copy> TracingSelector<C> for Bool<true>
Source§type Storage = TraceStorageEnabled<C>
type Storage = TraceStorageEnabled<C>
Selected trace storage type.
Source§impl<C: Copy> TracingSelector<C> for Bool<false>
impl<C: Copy> TracingSelector<C> for Bool<false>
Source§type Storage = TraceStorageDisabled
type Storage = TraceStorageDisabled
Selected trace storage type.
Auto Trait Implementations§
impl<const B: bool> Freeze for Bool<B>
impl<const B: bool> RefUnwindSafe for Bool<B>
impl<const B: bool> Send for Bool<B>
impl<const B: bool> Sync for Bool<B>
impl<const B: bool> Unpin for Bool<B>
impl<const B: bool> UnsafeUnpin for Bool<B>
impl<const B: bool> UnwindSafe for Bool<B>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more