pub struct CoreMLModel { /* private fields */ }Available on crate feature
coreml only.Expand description
A safe wrapper for VNCoreMLModel.
Implementations§
Source§impl CoreMLModel
impl CoreMLModel
pub fn new(model_path: impl AsRef<Path>) -> Self
pub fn with_input_image_feature_name( self, input_image_feature_name: impl Into<String>, ) -> Self
pub fn model_path(&self) -> &Path
pub fn input_image_feature_name(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for CoreMLModel
impl Clone for CoreMLModel
Source§fn clone(&self) -> CoreMLModel
fn clone(&self) -> CoreMLModel
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 CoreMLModel
impl Debug for CoreMLModel
Source§impl PartialEq for CoreMLModel
impl PartialEq for CoreMLModel
Source§fn eq(&self, other: &CoreMLModel) -> bool
fn eq(&self, other: &CoreMLModel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CoreMLModel
impl StructuralPartialEq for CoreMLModel
Auto Trait Implementations§
impl Freeze for CoreMLModel
impl RefUnwindSafe for CoreMLModel
impl Send for CoreMLModel
impl Sync for CoreMLModel
impl Unpin for CoreMLModel
impl UnsafeUnpin for CoreMLModel
impl UnwindSafe for CoreMLModel
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