Struct r3::bind::BindRef

source ·
pub struct BindRef<System, T>(_);
Expand description

A reference to a binding. Doubles as a binder.

Created by Bind::as_ref.

It doesn’t provide access to the contents by itself because it could be used before the binding is initialized. Index BindTable by this type to borrow the contents as &'static T.

Trait Implementations

Materializes BindRef<System, T> as &'static T. Can only be consumed by executables and not by bindings.

The runtime representation of Self. Read more
Define a binding dependency in CfgBindCtx::bind_registry. Read more
Convert self to the runtime representation (RuntimeBinder). Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The materialized form.
Construct a target object at runtime, using the intermediate product constructed by Binder::into_runtime_binder. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.