pub enum SceneFeatureValue {
Scalar(f64),
Vector(Vec<f64>),
Boolean(bool),
Categorical(&'static str),
Distribution(Vec<(&'static str, f64)>),
}Expand description
Possible values for a scene feature.
Variants§
Scalar(f64)
A single scalar (e.g., density = 0.73).
Vector(Vec<f64>)
A numeric vector (e.g., scene embedding).
Boolean(bool)
A boolean flag (e.g., daytime = true).
Categorical(&'static str)
A categorical label (e.g., “indoor”).
Distribution(Vec<(&'static str, f64)>)
A distribution over named categories.
Trait Implementations§
Source§impl Clone for SceneFeatureValue
impl Clone for SceneFeatureValue
Source§fn clone(&self) -> SceneFeatureValue
fn clone(&self) -> SceneFeatureValue
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 moreAuto Trait Implementations§
impl Freeze for SceneFeatureValue
impl RefUnwindSafe for SceneFeatureValue
impl Send for SceneFeatureValue
impl Sync for SceneFeatureValue
impl Unpin for SceneFeatureValue
impl UnsafeUnpin for SceneFeatureValue
impl UnwindSafe for SceneFeatureValue
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