/// Create an image handle for a given image
///
/// The type parameter has a trait bound on [image::ImageSelector], which can
/// be implemented to select which image to use when pulling from a
/// fat manifest.
/// For most cases the [image::ImagePlatformSelector] should do just fine.
///
/// # Example
/// ```
///# extern crate opencontainers;
///# use opencontainers::Registry;
///# use opencontainers::image::TestImageSelector as ImagePlatformSelector;
///# let registry = Registry::new("https://registry-1.docker.io");
/// let manifest = registry.image::<ImagePlatformSelector>("library/hello-world", "latest")
///     .expect("Could not get image");
/// ```
Create an image handle for a given image
The type parameter has a trait bound on [image::ImageSelector], which can
be implemented to select which image to use when pulling from a
fat manifest.
For most cases the [image::ImagePlatformSelector] should do just fine.

Example
```
Create an image handle for a given image The type parameter has a trait bound on [ image :: ImageSelector ] which can be implemented to select which image to use when pulling from a fat manifest . For most cases the [ image :: ImagePlatformSelector ] should do just fine . Example ` ` `
pub fn image<IS>(&self, name: &str, reference: &str) -> Result<Image, RegistryError>
    where
        IS: crate::image::ImageSelector,
    {
        Image::new::<IS>(self, name, reference)
    }
pub fn image < IS > ( & self , name : & str , reference : & str ) -> Result < Image , RegistryError > where IS : crate :: image :: ImageSelector , { Image :: new :: < IS > ( self , name , reference ) }
Create an image handle for a given image
The type parameter has a trait bound on [image::ImageSelector], which can
be implemented to select which image to use when pulling from a
fat manifest.
Create an image handle for a given image The type parameter has a trait bound on [ image :: ImageSelector ] which can be implemented to select which image to use when pulling from a fat manifest .
&self
name
&str
reference
&str
extern crate opencontainers;
None
use opencontainers::registry;
None
use opencontainers::image::testimageselector as imageplatformselector;
None
let registry = registry::new("https://registry-1.docker.io");
let manifest = registry.image::("library/hello-world", "latest")
.expect("Could not get image");
```
let manifest = registry . image :: ( " library / hello - world " " latest " ) . expect ( " Could not get image " ) ; ` ` `