pub enum ComposeReject {
NoSections,
TensorShapeConflict {
name: String,
first: (usize, usize, Precision),
second: (usize, usize, Precision),
},
SectionNotScheduled {
section: usize,
},
Invalid(IrViolation),
Reject(Box<SpatialReject>),
PhaseOverflowsMemory {
bytes: u32,
capacity: usize,
},
}Expand description
Where the composer refuses — always by name, never by dropping a section.
Variants§
NoSections
Nothing to compose.
TensorShapeConflict
Two sections give one tensor two different shapes or element types. Composition is only
meaningful when producer and consumer agree about where element p lives.
SectionNotScheduled
A section’s schedule is missing — compose joins VERIFIED sections, never templates.
Invalid(IrViolation)
The joined program breaks a structural invariant.
Reject(Box<SpatialReject>)
A pass refused the joined program.
PhaseOverflowsMemory
A phase’s sections share a site and, laid out one past another, need more of its memory than it has.
Trait Implementations§
Source§impl Clone for ComposeReject
impl Clone for ComposeReject
Source§fn clone(&self) -> ComposeReject
fn clone(&self) -> ComposeReject
Returns a duplicate of the value. Read more
1.0.0 · 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 ComposeReject
impl Debug for ComposeReject
Source§impl From<IrViolation> for ComposeReject
impl From<IrViolation> for ComposeReject
Source§fn from(v: IrViolation) -> Self
fn from(v: IrViolation) -> Self
Converts to this type from the input type.
Source§impl From<SpatialReject> for ComposeReject
impl From<SpatialReject> for ComposeReject
Source§fn from(v: SpatialReject) -> Self
fn from(v: SpatialReject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ComposeReject
impl PartialEq for ComposeReject
impl StructuralPartialEq for ComposeReject
Auto Trait Implementations§
impl Freeze for ComposeReject
impl RefUnwindSafe for ComposeReject
impl Send for ComposeReject
impl Sync for ComposeReject
impl Unpin for ComposeReject
impl UnsafeUnpin for ComposeReject
impl UnwindSafe for ComposeReject
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.