pub struct Dependencies { /* private fields */ }Expand description
Exact dependency routes selected for one Plugin generation.
Implementations§
Source§impl Dependencies
impl Dependencies
Sourcepub fn one(&self, requirement_id: &str) -> Result<Dependency, String>
pub fn one(&self, requirement_id: &str) -> Result<Dependency, String>
Resolves exactly one provider for a named dependency role.
Sourcepub fn optional(
&self,
requirement_id: &str,
) -> Result<Option<Dependency>, String>
pub fn optional( &self, requirement_id: &str, ) -> Result<Option<Dependency>, String>
Resolves zero or one provider for a named dependency role.
Sourcepub fn many(&self, requirement_id: &str) -> Vec<Dependency>
pub fn many(&self, requirement_id: &str) -> Vec<Dependency>
Resolves all providers for a named dependency role in Plan order.
Trait Implementations§
Source§impl Clone for Dependencies
impl Clone for Dependencies
Source§fn clone(&self) -> Dependencies
fn clone(&self) -> Dependencies
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 Dependencies
impl Debug for Dependencies
Source§impl Default for Dependencies
impl Default for Dependencies
Source§fn default() -> Dependencies
fn default() -> Dependencies
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Dependencies
impl RefUnwindSafe for Dependencies
impl Send for Dependencies
impl Sync for Dependencies
impl Unpin for Dependencies
impl UnsafeUnpin for Dependencies
impl UnwindSafe for Dependencies
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<T> Plugin for T
impl<T> Plugin for T
Source§fn create(_context: CreateContext) -> Result<T, String>
fn create(_context: CreateContext) -> Result<T, String>
Constructs the complete object. Dependency calls use
context.ctx().Source§fn requirements() -> &'static [Requirement]
fn requirements() -> &'static [Requirement]
Source-declared named dependencies required by this object.