pub enum MergePolicy {
Permissive,
Strict,
}Expand description
How to reconcile an inferred shape with a value’s declared shape.
Variants§
Permissive
Prefer the more specific dimension and keep going; never error on a disagreement. This is the robust default used for whole-graph inference.
Strict
Raise ShapeInferError::ShapeConflict / ShapeInferError::RankConflict
on a concrete disagreement between inferred and declared shapes.
Symbolic differences are treated as naming and never conflict.
Trait Implementations§
Source§impl Clone for MergePolicy
impl Clone for MergePolicy
Source§fn clone(&self) -> MergePolicy
fn clone(&self) -> MergePolicy
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 MergePolicy
Source§impl Debug for MergePolicy
impl Debug for MergePolicy
Source§impl Default for MergePolicy
impl Default for MergePolicy
Source§fn default() -> MergePolicy
fn default() -> MergePolicy
Returns the “default value” for a type. Read more
impl Eq for MergePolicy
Source§impl PartialEq for MergePolicy
impl PartialEq for MergePolicy
impl StructuralPartialEq for MergePolicy
Auto Trait Implementations§
impl Freeze for MergePolicy
impl RefUnwindSafe for MergePolicy
impl Send for MergePolicy
impl Sync for MergePolicy
impl Unpin for MergePolicy
impl UnsafeUnpin for MergePolicy
impl UnwindSafe for MergePolicy
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