pub struct DependencyDecl {
pub role: &'static str,
pub slot: &'static str,
}Expand description
Author-declared sibling dependency at a named slot. Compiler
verifies role match; runtime reaches it via
RuntimeResourceRef::dependency::<T>(slot).
Fields§
§role: &'static strPascalCase role identifier. Plain string so bb-ir stays
free of the ComponentRole enum.
slot: &'static strSlot name in the compiler’s binding spec.
Trait Implementations§
Source§impl Clone for DependencyDecl
impl Clone for DependencyDecl
Source§fn clone(&self) -> DependencyDecl
fn clone(&self) -> DependencyDecl
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 moreimpl Copy for DependencyDecl
Source§impl Debug for DependencyDecl
impl Debug for DependencyDecl
impl Eq for DependencyDecl
Source§impl Hash for DependencyDecl
impl Hash for DependencyDecl
Source§impl PartialEq for DependencyDecl
impl PartialEq for DependencyDecl
Source§fn eq(&self, other: &DependencyDecl) -> bool
fn eq(&self, other: &DependencyDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DependencyDecl
Auto Trait Implementations§
impl Freeze for DependencyDecl
impl RefUnwindSafe for DependencyDecl
impl Send for DependencyDecl
impl Sync for DependencyDecl
impl Unpin for DependencyDecl
impl UnsafeUnpin for DependencyDecl
impl UnwindSafe for DependencyDecl
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