pub struct CoreMlArtifact { /* private fields */ }Expand description
Builder for the provider-owned Core ML path artifact.
The model path is relative to the host-selected model root. Every nonoptional model input and
output must be mapped exactly once. Mapping one input and one compatible output to the same slot
creates an in-place ReadWrite binding.
Implementations§
Source§impl CoreMlArtifact
impl CoreMlArtifact
pub fn new(model_path: impl Into<String>) -> Result<Self, ArtifactBuildError>
pub fn map_input( self, slot: u32, feature_name: impl Into<String>, ) -> Result<Self, ArtifactBuildError>
pub fn map_output( self, slot: u32, feature_name: impl Into<String>, ) -> Result<Self, ArtifactBuildError>
pub fn encode(&self) -> Result<Vec<u8>, ArtifactBuildError>
Trait Implementations§
Source§impl Clone for CoreMlArtifact
impl Clone for CoreMlArtifact
Source§fn clone(&self) -> CoreMlArtifact
fn clone(&self) -> CoreMlArtifact
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 CoreMlArtifact
impl Debug for CoreMlArtifact
impl Eq for CoreMlArtifact
Source§impl PartialEq for CoreMlArtifact
impl PartialEq for CoreMlArtifact
impl StructuralPartialEq for CoreMlArtifact
Auto Trait Implementations§
impl Freeze for CoreMlArtifact
impl RefUnwindSafe for CoreMlArtifact
impl Send for CoreMlArtifact
impl Sync for CoreMlArtifact
impl Unpin for CoreMlArtifact
impl UnsafeUnpin for CoreMlArtifact
impl UnwindSafe for CoreMlArtifact
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