pub enum SurfaceHint {
Unknown,
KnownType {
surface_type: SurfaceType,
},
InitialGuess {
surface: AnalyticSurface,
trust: MetadataTrust,
},
Constrained {
surface_type: SurfaceType,
constraints: SurfaceConstraints,
trust: MetadataTrust,
},
ExactCandidate {
surface: AnalyticSurface,
},
}Expand description
Optional source knowledge used to guide surface recognition.
Variants§
Unknown
No prior surface information is available.
KnownType
The primitive family is known but its parameters are not.
Fields
§
surface_type: SurfaceTypeThe known primitive family.
InitialGuess
Numeric parameters are available as a refinement starting point.
Fields
§
surface: AnalyticSurfaceInitial carrier parameters.
§
trust: MetadataTrustConfidence assigned to the supplied parameters.
Constrained
The family is known and selected parameter groups may be fixed.
Fields
§
surface_type: SurfaceTypeThe required primitive family.
§
constraints: SurfaceConstraintsInitial values and fixed-parameter mask.
§
trust: MetadataTrustConfidence assigned to the supplied constraints.
ExactCandidate
A complete carrier that may be reused after validation.
Fields
§
surface: AnalyticSurfaceThe proposed exact carrier.
Trait Implementations§
Source§impl Clone for SurfaceHint
impl Clone for SurfaceHint
Source§fn clone(&self) -> SurfaceHint
fn clone(&self) -> SurfaceHint
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 moreSource§impl Debug for SurfaceHint
impl Debug for SurfaceHint
Source§impl<'de> Deserialize<'de> for SurfaceHint
impl<'de> Deserialize<'de> for SurfaceHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SurfaceHint
impl PartialEq for SurfaceHint
Source§impl Serialize for SurfaceHint
impl Serialize for SurfaceHint
impl StructuralPartialEq for SurfaceHint
Auto Trait Implementations§
impl Freeze for SurfaceHint
impl RefUnwindSafe for SurfaceHint
impl Send for SurfaceHint
impl Sync for SurfaceHint
impl Unpin for SurfaceHint
impl UnsafeUnpin for SurfaceHint
impl UnwindSafe for SurfaceHint
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