pub struct ResolvedBindings { /* private fields */ }Expand description
Typed bindings visible to an activated extension.
Implementations§
Source§impl ResolvedBindings
impl ResolvedBindings
Sourcepub fn get(
&self,
extension: &ExtensionMetadata,
reference: &BindingReference,
) -> Result<&BindingValue, FrameworkError>
pub fn get( &self, extension: &ExtensionMetadata, reference: &BindingReference, ) -> Result<&BindingValue, FrameworkError>
Looks up a binding owned by this extension or one of its direct dependencies.
Limiting access to direct dependencies makes an extension’s required contracts explicit instead of allowing it to rely on unrelated active extensions.
Sourcepub fn entity_type(
&self,
extension: &ExtensionMetadata,
reference: &BindingReference,
) -> Result<&EntityTypeId, FrameworkError>
pub fn entity_type( &self, extension: &ExtensionMetadata, reference: &BindingReference, ) -> Result<&EntityTypeId, FrameworkError>
Retrieves an entity-type binding and verifies its declared kind.
Sourcepub fn property(
&self,
extension: &ExtensionMetadata,
reference: &BindingReference,
) -> Result<&PropertyId, FrameworkError>
pub fn property( &self, extension: &ExtensionMetadata, reference: &BindingReference, ) -> Result<&PropertyId, FrameworkError>
Retrieves a property binding and verifies its declared kind.
Trait Implementations§
Source§impl Clone for ResolvedBindings
impl Clone for ResolvedBindings
Source§fn clone(&self) -> ResolvedBindings
fn clone(&self) -> ResolvedBindings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedBindings
impl Debug for ResolvedBindings
Source§impl Default for ResolvedBindings
impl Default for ResolvedBindings
Source§fn default() -> ResolvedBindings
fn default() -> ResolvedBindings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResolvedBindings
impl RefUnwindSafe for ResolvedBindings
impl Send for ResolvedBindings
impl Sync for ResolvedBindings
impl Unpin for ResolvedBindings
impl UnsafeUnpin for ResolvedBindings
impl UnwindSafe for ResolvedBindings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more