#[non_exhaustive]pub enum WeldProblemKind {
SeveralWeldNodes {
count: usize,
},
NoWeldNode,
BadAttribute {
attribute: &'static str,
expected: Option<usize>,
},
NegativeId {
id: i32,
},
EmptyUse,
UnknownKind {
kind: String,
},
BadIndex {
index: [i32; 3],
},
BadRange {
range: [f32; 2],
},
PartialLoop,
NotConnected {
segment: usize,
},
ConnectivityUnverified,
}Expand description
What is wrong with a weld table.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SeveralWeldNodes
The draft allows one weld connection per geometry.
NoWeldNode
Weld attributes, but no weld connection to give their ids a
namespace.
BadAttribute
A table attribute is missing, of the wrong type, or has the wrong number of values.
Fields
NegativeId
A negative id.
EmptyUse
A use with no segments.
UnknownKind
A weld.kind the draft does not define, or one the geometry’s
type cannot have.
BadIndex
A weld.index that selects nothing on this geometry.
BadRange
A weld.range outside [0, 1], or empty.
PartialLoop
A trim-loop segment that is not a complete use on its own: it
has company, or a partial range.
NotConnected
Consecutive segments that do not meet.
ConnectivityUnverified
A chain whose connectivity cannot be checked from topology – segments of different kinds, of different trim loops, or partial ranges. The use is kept.
Trait Implementations§
Source§impl Clone for WeldProblemKind
impl Clone for WeldProblemKind
Source§impl Debug for WeldProblemKind
impl Debug for WeldProblemKind
Source§impl PartialEq for WeldProblemKind
impl PartialEq for WeldProblemKind
impl StructuralPartialEq for WeldProblemKind
Auto Trait Implementations§
impl Forget for WeldProblemKind
impl Freeze for WeldProblemKind
impl Move for WeldProblemKind
impl RefUnwindSafe for WeldProblemKind
impl Send for WeldProblemKind
impl Sync for WeldProblemKind
impl Unpin for WeldProblemKind
impl UnsafeUnpin for WeldProblemKind
impl UnwindSafe for WeldProblemKind
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