pub enum SlotSource {
DirectPlaceholder,
DependencyOf {
component: String,
bound_at_slot: String,
required_slot: String,
},
}Expand description
Why a slot needs to be bound. Threaded into
CompileError::UnboundSlot so the diagnostic can point at
the originating location.
Variants§
DirectPlaceholder
At least one NodeProto in the IR references a role via
(required_trait, slot_id) metadata but no BindingSpec
entry of that role exists. The user forgot the
.bind_<role>::<T>("…") for a placeholder field their
Module body actually uses.
DependencyOf
The slot is required because the named concrete declares
#[depends(<role> = "<slot>")], but no matching binding
exists. Diagnostic: “backend slot ‘compute’ is required
by CountingIndex bound at slot ‘primary_index’ but isn’t
bound.”
Trait Implementations§
Source§impl Clone for SlotSource
impl Clone for SlotSource
Source§fn clone(&self) -> SlotSource
fn clone(&self) -> SlotSource
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 moreAuto Trait Implementations§
impl Freeze for SlotSource
impl RefUnwindSafe for SlotSource
impl Send for SlotSource
impl Sync for SlotSource
impl Unpin for SlotSource
impl UnsafeUnpin for SlotSource
impl UnwindSafe for SlotSource
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