pub struct ModuleTargetRegistry { /* private fields */ }Expand description
Deterministic module target registry for Rust-native dispatch planning.
Implementations§
Source§impl ModuleTargetRegistry
impl ModuleTargetRegistry
Sourcepub fn from_targets(
targets: impl IntoIterator<Item = ModuleTargetDescriptor>,
) -> Result<Self, ModuleCapabilityError>
pub fn from_targets( targets: impl IntoIterator<Item = ModuleTargetDescriptor>, ) -> Result<Self, ModuleCapabilityError>
Builds a registry from module target descriptors.
Sourcepub fn register(
&mut self,
target: ModuleTargetDescriptor,
) -> Result<(), ModuleCapabilityError>
pub fn register( &mut self, target: ModuleTargetDescriptor, ) -> Result<(), ModuleCapabilityError>
Registers one target descriptor.
Sourcepub fn resolve_target(
&self,
requested: Option<&str>,
) -> Result<&ModuleTargetDescriptor, ModuleCapabilityError>
pub fn resolve_target( &self, requested: Option<&str>, ) -> Result<&ModuleTargetDescriptor, ModuleCapabilityError>
Resolves an explicit target, or the single default target when none is requested.
Sourcepub fn capability_report(
&self,
requested: impl IntoIterator<Item = impl AsRef<str>>,
) -> CapabilityReport
pub fn capability_report( &self, requested: impl IntoIterator<Item = impl AsRef<str>>, ) -> CapabilityReport
Builds a report that names requested, granted, and denied target capabilities.
Trait Implementations§
Source§impl Clone for ModuleTargetRegistry
impl Clone for ModuleTargetRegistry
Source§fn clone(&self) -> ModuleTargetRegistry
fn clone(&self) -> ModuleTargetRegistry
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 ModuleTargetRegistry
impl Debug for ModuleTargetRegistry
Source§impl Default for ModuleTargetRegistry
impl Default for ModuleTargetRegistry
Source§fn default() -> ModuleTargetRegistry
fn default() -> ModuleTargetRegistry
Returns the “default value” for a type. Read more
impl Eq for ModuleTargetRegistry
Source§impl PartialEq for ModuleTargetRegistry
impl PartialEq for ModuleTargetRegistry
Source§fn eq(&self, other: &ModuleTargetRegistry) -> bool
fn eq(&self, other: &ModuleTargetRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleTargetRegistry
Auto Trait Implementations§
impl Freeze for ModuleTargetRegistry
impl RefUnwindSafe for ModuleTargetRegistry
impl Send for ModuleTargetRegistry
impl Sync for ModuleTargetRegistry
impl Unpin for ModuleTargetRegistry
impl UnsafeUnpin for ModuleTargetRegistry
impl UnwindSafe for ModuleTargetRegistry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.