pub enum CoreMLFeatureValue {
Int64(i64),
Double(f64),
String(String),
MultiArray {
shape: Vec<usize>,
values: Vec<f64>,
},
Unknown {
type_name: String,
},
}Available on crate feature
coreml only.Expand description
A safe MLFeatureValue wrapper for VNCoreMLFeatureValueObservation.
Variants§
Trait Implementations§
Source§impl Clone for CoreMLFeatureValue
impl Clone for CoreMLFeatureValue
Source§fn clone(&self) -> CoreMLFeatureValue
fn clone(&self) -> CoreMLFeatureValue
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 CoreMLFeatureValue
impl Debug for CoreMLFeatureValue
Source§impl PartialEq for CoreMLFeatureValue
impl PartialEq for CoreMLFeatureValue
Source§fn eq(&self, other: &CoreMLFeatureValue) -> bool
fn eq(&self, other: &CoreMLFeatureValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoreMLFeatureValue
Auto Trait Implementations§
impl Freeze for CoreMLFeatureValue
impl RefUnwindSafe for CoreMLFeatureValue
impl Send for CoreMLFeatureValue
impl Sync for CoreMLFeatureValue
impl Unpin for CoreMLFeatureValue
impl UnsafeUnpin for CoreMLFeatureValue
impl UnwindSafe for CoreMLFeatureValue
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