Vision

Trait Vision 

Source
pub trait Vision: HasCapability {
    // Provided method
    fn caption<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        image: &'life1 [u8],
        prompt: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Provided Methods§

Source

fn caption<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, image: &'life1 [u8], prompt: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

impl<P, C> Vision for Model<P, C>
where P: Provider + Vision, C: Vision + ?Sized + Send + Sync,