pub enum ViewDataValidation<T> {
SourceHasNoSegments,
OffsetOutOfRange {
offset: usize,
source_length: usize,
},
UpdatedStartNotOnSegment {
start_point: Vector2<T>,
},
EndPointNotOnSegment {
end_point: Vector2<T>,
},
EndPointOnFinalOffsetVertex {
end_point: Vector2<T>,
final_offset_vertex: PlineVertex<T>,
},
UpdatedBulgeDoesNotMatch {
updated_bulge: T,
expected: T,
},
IsValid,
}
Expand description
Enum used for view data validation debugging and asserting.
Variants§
SourceHasNoSegments
OffsetOutOfRange
UpdatedStartNotOnSegment
EndPointNotOnSegment
EndPointOnFinalOffsetVertex
UpdatedBulgeDoesNotMatch
IsValid
Trait Implementations§
source§impl<T: Clone> Clone for ViewDataValidation<T>
impl<T: Clone> Clone for ViewDataValidation<T>
source§fn clone(&self) -> ViewDataValidation<T>
fn clone(&self) -> ViewDataValidation<T>
Returns a copy 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<T: Debug> Debug for ViewDataValidation<T>
impl<T: Debug> Debug for ViewDataValidation<T>
source§impl<T: PartialEq> PartialEq<ViewDataValidation<T>> for ViewDataValidation<T>
impl<T: PartialEq> PartialEq<ViewDataValidation<T>> for ViewDataValidation<T>
source§fn eq(&self, other: &ViewDataValidation<T>) -> bool
fn eq(&self, other: &ViewDataValidation<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.