pub enum BindingPlanError {
EmptyTarget,
InvalidTargetShape {
target: String,
shape: Vec<usize>,
},
TargetShapeOverflow {
target: String,
},
DuplicateTarget {
target: String,
},
EmptyRecipeSources {
target: String,
},
InvalidSourceKey {
target: String,
},
DuplicateSourceClaim {
source_key: String,
first: String,
second: String,
},
ShapeMismatch {
target: String,
expected: Vec<usize>,
actual: Vec<usize>,
},
DtypeMismatch {
target: String,
expected: RecipeDtype,
actual: RecipeDtype,
},
Recipe(RecipeError),
Declaration(ResidencyDeclarationError),
}Expand description
Invalid canonical binding declarations or inferred outputs.
Variants§
EmptyTarget
A declaration has no stable destination identity.
InvalidTargetShape
A destination contains a zero-sized dimension.
TargetShapeOverflow
Destination element-count computation overflowed.
DuplicateTarget
Two declarations claim the same destination.
EmptyRecipeSources
A recipe contains no physical source.
InvalidSourceKey
A recipe contains an empty physical source identity.
DuplicateSourceClaim
Two destinations claimed an undeclared shared physical source.
Fields
ShapeMismatch
Inferred and declared shapes differ.
Fields
DtypeMismatch
Inferred and declared dtypes differ.
Recipe(RecipeError)
Recipe inference failed.
Declaration(ResidencyDeclarationError)
Lowered residency declaration is invalid.
Trait Implementations§
Source§impl Debug for BindingPlanError
impl Debug for BindingPlanError
Source§impl Display for BindingPlanError
impl Display for BindingPlanError
Source§impl Error for BindingPlanError
impl Error for BindingPlanError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BindingPlanError> for ModuleBindingPlanError
impl From<BindingPlanError> for ModuleBindingPlanError
Source§fn from(source: BindingPlanError) -> Self
fn from(source: BindingPlanError) -> Self
Converts to this type from the input type.
Source§impl From<RecipeError> for BindingPlanError
impl From<RecipeError> for BindingPlanError
Source§fn from(source: RecipeError) -> Self
fn from(source: RecipeError) -> Self
Converts to this type from the input type.
Source§impl From<ResidencyDeclarationError> for BindingPlanError
impl From<ResidencyDeclarationError> for BindingPlanError
Source§fn from(source: ResidencyDeclarationError) -> Self
fn from(source: ResidencyDeclarationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BindingPlanError
impl RefUnwindSafe for BindingPlanError
impl Send for BindingPlanError
impl Sync for BindingPlanError
impl Unpin for BindingPlanError
impl UnsafeUnpin for BindingPlanError
impl UnwindSafe for BindingPlanError
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