Trait EncourageReuse

Source
pub trait EncourageReuse {
    const ENCOURAGE_REUSE: bool;
}
Expand description

Denote whether a certain querier should be reused.

“Reuse” means to call methods of Query and/or QueryMut more than once.

Required Associated Constants§

Source

const ENCOURAGE_REUSE: bool

Whether the querier should be reused

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Ptr: Deref<Target: EncourageReuse + ?Sized>> EncourageReuse for Pin<Ptr>

Source§

const ENCOURAGE_REUSE: bool = <Ptr::Target as EncourageReuse>::ENCOURAGE_REUSE

Source§

impl<Querier: EncourageReuse + ?Sized> EncourageReuse for &Querier

Source§

const ENCOURAGE_REUSE: bool = Querier::ENCOURAGE_REUSE

Source§

impl<Querier: EncourageReuse + ?Sized> EncourageReuse for &mut Querier

Source§

const ENCOURAGE_REUSE: bool = Querier::ENCOURAGE_REUSE

Source§

impl<Querier: EncourageReuse + ?Sized> EncourageReuse for Box<Querier>

Source§

const ENCOURAGE_REUSE: bool = Querier::ENCOURAGE_REUSE

Source§

impl<Querier: EncourageReuse + ?Sized> EncourageReuse for Rc<Querier>

Source§

const ENCOURAGE_REUSE: bool = Querier::ENCOURAGE_REUSE

Source§

impl<Querier: EncourageReuse + ?Sized> EncourageReuse for Arc<Querier>

Source§

const ENCOURAGE_REUSE: bool = Querier::ENCOURAGE_REUSE

Implementors§