pub fn with_capability<U>(self) -> Result<Family<B, U>, Self>
    where
        C: Supports<U>,
    {
        if let Some(capability) = self.capability.supports() {
            Ok(Family {
                id: self.id,
                queues: self.queues,
                // min_image_transfer_granularity: self.min_image_transfer_granularity,
                capability,
                relevant: self.relevant,
            })
        } else {
            Err(self)
        }
    }
/// Convert capability into type-level one.
///
Convert capability into type-level one.
Convert capability into type - level one .
pub fn with_capability<U>(self) -> Result<Family<B, U>, Self>
    where
        C: Supports<U>,
    {
        if let Some(capability) = self.capability.supports() {
            Ok(Family {
                id: self.id,
                queues: self.queues,
                // min_image_transfer_granularity: self.min_image_transfer_granularity,
                capability,
                relevant: self.relevant,
            })
        } else {
            Err(self)
        }
    }
pub fn with_capability < U > ( self ) -> Result < Family < B , U > , Self > where C : Supports < U > , { if let Some ( capability ) = self . capability . supports ( ) { Ok ( Family { id : self . id , queues : self . queues , // min_image_transfer_granularity: self.min_image_transfer_granularity, capability , relevant : self . relevant , } ) } else { Err ( self ) } }
Convert capability into type-level one.
Convert capability into type - level one .
self
self