MPSKernel

Struct MPSKernel 

Source
pub struct MPSKernel { /* private fields */ }
Available on crate feature MPSKernel only.
Expand description

Dependencies: This depends on Metal.framework

The MPSKernel class is the base class for all MPS objects. It defines a standard interface for MPS kernels. You should not use the MPSKernel class directly. Instead, a number of MPSKernel subclasses are available in MetalPerformanceShaders.framework that define specific high-performance image processing operations.

The basic sequence for applying a MPSKernel to an image is as follows:

  1. Create a MPSKernel corresponding to the operation you wish to perform:
                  MPSImageSobel *sobel = [[MPSImageSobel alloc] initWithDevice: mtlDevice];
  1. Encode the filter into a command buffer:
                  sobel.offset = ...;
                  sobel.clipRect = ...;
                  sobel.options = ...;
                  [sobel encodeToCommandBuffer: commandBuffer
                                 sourceTexture: inputImage
                            destinationTexture: resultImage ];

Encoding the kernel merely encodes the operation into a MTLCommandBuffer. It does not modify any pixels, yet. All MPSKernel state has been copied to the command buffer. MPSKernels may be reused. If the texture was previously operated on by another command encoder (e.g. MTLRenderCommandEncoder), you should call -endEncoding on the other encoder before encoding the filter.

Some MPS filters work in place (inputImage = resultImage) even in situations where Metal might not normally allow in place operation on textures. If in-place operation is desired, you may attempt to call [MPSKernel encodeKernelInPlace…]. If the operation can not be completed in place, then NO will be returned and you will have to create a new result texture and try again. To make an in-place image filter reliable, pass a fallback MPSCopyAllocator to the method to create a new texture to write to in the event that a filter can not operate in place.

(Repeat steps 2 for more filters, as desired.)

It should be self evident that step 2 may not be thread safe. That is, you can not have multiple threads manipulating the same properties on the same MPSKernel object at the same time and achieve coherent output. In common usage, the MPSKernel properties don’t often need to be changed from their default values, but if you need to apply the same filter to multiple images on multiple threads with cropping / tiling, make additional MPSKernel objects per thread. They are cheap. You can use multiple MPSKernel objects on multiple threads, as long as only one thread is operating on any particular MPSKernel object at a time.

  1. After encoding any additional work to the command buffer using other encoders, submit the MTLCommandBuffer to your MTLCommandQueue, using:
                  [mtlCommandBuffer commit];

A MPSKernel can be saved to disk / network using NSCoders such as NSKeyedArchiver. When decoding, the system default MTLDevice will be chosen unless the NSCoder adopts the <MPSDeviceProvider

protocol. To accomplish this, subclass or extend your unarchiver to add this method.

See also Apple’s documentation

Implementations§

Source§

impl MPSKernel

Source

pub unsafe fn options(&self) -> MPSKernelOptions

Available on crate features MPSCore and MPSCoreTypes only.

The set of options used to run the kernel. subsubsection_options

Source

pub unsafe fn setOptions(&self, options: MPSKernelOptions)

Available on crate features MPSCore and MPSCoreTypes only.

Setter for options.

Source

pub unsafe fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>

Available on crate feature MPSCore only.

The device on which the kernel will be used

Source

pub unsafe fn label(&self) -> Option<Retained<NSString>>

Available on crate feature MPSCore only.

A string to help identify this object.

Source

pub unsafe fn setLabel(&self, label: Option<&NSString>)

Available on crate feature MPSCore only.

Setter for label.

This is copied when set.

Source

pub unsafe fn initWithDevice( this: Allocated<Self>, device: &ProtocolObject<dyn MTLDevice>, ) -> Retained<Self>

Available on crate feature MPSCore only.

Standard init with default properties per filter type

Parameter device: The device that the filter will be used on. May not be NULL.

Returns: a pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later.

Source

pub unsafe fn copyWithZone_device( &self, zone: *mut NSZone, device: Option<&ProtocolObject<dyn MTLDevice>>, ) -> Retained<Self>

Available on crate feature MPSCore only.

Make a copy of this MPSKernel for a new device

-copyWithZone: will call this API to make a copy of the MPSKernel on the same device. This interface may also be called directly to make a copy of the MPSKernel on a new device. Typically, the same MPSKernels should not be used to encode kernels on multiple command buffers from multiple threads. Many MPSKernels have mutable properties that might be changed by the other thread while this one is trying to encode. If you need to use a MPSKernel from multiple threads make a copy of it for each additional thread using -copyWithZone: or -copyWithZone:device:

Parameter zone: The NSZone in which to allocate the object

Parameter device: The device for the new MPSKernel. If nil, then use self.device.

Returns: a pointer to a copy of this MPSKernel. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later.

§Safety

zone must be a valid pointer or null.

Source

pub unsafe fn initWithCoder( this: Allocated<Self>, a_decoder: &NSCoder, ) -> Option<Retained<Self>>

Available on crate feature MPSCore only.

Called by NSCoder to decode MPSKernels

This isn’t the right interface to decode a MPSKernel, but it is the one that NSCoder uses. To enable your NSCoder (e.g. NSKeyedUnarchiver) to set which device to use extend the object to adopt the MPSDeviceProvider protocol. Otherwise, the Metal system default device will be used.

§Safety

a_decoder possibly has further requirements.

Source

pub unsafe fn initWithCoder_device( this: Allocated<Self>, a_decoder: &NSCoder, device: &ProtocolObject<dyn MTLDevice>, ) -> Option<Retained<Self>>

Available on crate feature MPSCore only.

NSSecureCoding compatability

While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can’t know which device your data is allocated on, we have to guess and may guess incorrectly. To avoid that problem, use initWithCoder:device instead.

Parameter aDecoder: The NSCoder subclass with your serialized MPSKernel

Parameter device: The MTLDevice on which to make the MPSKernel

Returns: A new MPSKernel object, or nil if failure.

§Safety

a_decoder possibly has further requirements.

Source§

impl MPSKernel

Methods declared on superclass NSObject.

Source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

Available on crate feature MPSCore only.
Source

pub unsafe fn new() -> Retained<Self>

Available on crate feature MPSCore only.

Methods from Deref<Target = NSObject>§

Source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

Source

pub fn class(&self) -> &'static AnyClass

Dynamically find the class of this object.

§Panics

May panic if the object is invalid (which may be the case for objects returned from unavailable init/new methods).

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
Source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Source

pub fn downcast_ref<T>(&self) -> Option<&T>
where T: DowncastTarget,

Attempt to downcast the object to a class of type T.

This is the reference-variant. Use Retained::downcast if you want to convert a retained object to another type.

§Mutable classes

Some classes have immutable and mutable variants, such as NSString and NSMutableString.

When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.

So using this method to convert a NSString to a NSMutableString, while not unsound, is generally frowned upon unless you created the string yourself, or the API explicitly documents the string to be mutable.

See Apple’s documentation on mutability and on isKindOfClass: for more details.

§Generic classes

Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.

You can, however, safely downcast to generic collections where all the type-parameters are AnyObject.

§Panics

This works internally by calling isKindOfClass:. That means that the object must have the instance method of that name, and an exception will be thrown (if CoreFoundation is linked) or the process will abort if that is not the case. In the vast majority of cases, you don’t need to worry about this, since both root objects NSObject and NSProxy implement this method.

§Examples

Cast an NSString back and forth from NSObject.

use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};

let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();

Try (and fail) to cast an NSObject to an NSString.

use objc2_foundation::{NSObject, NSString};

let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());

Try to cast to an array of strings.

use objc2_foundation::{NSArray, NSObject, NSString};

let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();

This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.

Downcast when processing each element instead.

use objc2_foundation::{NSArray, NSObject, NSString};

let arr = NSArray::from_retained_slice(&[NSObject::new()]);

for elem in arr {
    if let Some(data) = elem.downcast_ref::<NSString>() {
        // handle `data`
    }
}

Trait Implementations§

Source§

impl AsRef<AnyObject> for MPSKernel

Available on crate feature MPSCore only.
Source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSAccelerationStructure

Available on crate features MPSAccelerationStructure and MPSRayIntersector and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSBinaryImageKernel

Available on crate features MPSImageKernel and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNAdd

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNAddGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNArithmetic

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNArithmeticGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBatchNormalization

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBatchNormalizationGradient

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBatchNormalizationStatistics

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBatchNormalizationStatisticsGradient

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBinaryConvolution

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBinaryFullyConnected

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNBinaryKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNConvolution

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNConvolutionGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNConvolutionTranspose

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNConvolutionTransposeGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNCrossChannelNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNCrossChannelNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNDilatedPoolingMax

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNDilatedPoolingMaxGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNDivide

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNDropout

Available on crate features MPSCNNDropout and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNDropoutGradient

Available on crate features MPSCNNDropout and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNFullyConnected

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNFullyConnectedGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNGradientKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNGroupNormalization

Available on crate features MPSCNNGroupNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNGroupNormalizationGradient

Available on crate features MPSCNNGroupNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNInstanceNormalization

Available on crate features MPSCNNInstanceNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNInstanceNormalizationGradient

Available on crate features MPSCNNInstanceNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNLocalContrastNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNLocalContrastNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNLogSoftMax

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNLogSoftMaxGradient

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNMultiaryKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNMultiply

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNMultiplyGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuron

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronAbsolute

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronELU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronExponential

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronGradient

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronHardSigmoid

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronLinear

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronLogarithm

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronPReLU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronPower

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronReLU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronReLUN

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronSigmoid

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronSoftPlus

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronSoftSign

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNNeuronTanH

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPooling

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingAverage

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingAverageGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingL2Norm

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingL2NormGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingMax

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNPoolingMaxGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSoftMax

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSoftMaxGradient

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSpatialNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSpatialNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSubtract

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNSubtractGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsampling

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsamplingBilinear

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsamplingBilinearGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsamplingGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsamplingNearest

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNUpsamplingNearestGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSCNNYOLOLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageAdd

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageAreaMax

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageAreaMin

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageArithmetic

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageBilinearScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageBox

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageCanny

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageConversion

Available on crate features MPSImageConversion and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageConvolution

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageCopyToMatrix

Available on crate features MPSImageCopy and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageDilate

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageDivide

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageEDLines

Available on crate features MPSImageEDLines and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageErode

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageEuclideanDistanceTransform

Available on crate features MPSImageDistanceTransform and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageFindKeypoints

Available on crate features MPSImageKeypoint and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageGaussianBlur

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageGaussianPyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageGuidedFilter

Available on crate features MPSImageGuidedFilter and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageHistogram

Available on crate features MPSImageHistogram and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageHistogramEqualization

Available on crate features MPSImageHistogram and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageHistogramSpecification

Available on crate features MPSImageHistogram and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageIntegral

Available on crate features MPSImageIntegral and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageIntegralOfSquares

Available on crate features MPSImageIntegral and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageLanczosScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageLaplacian

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageLaplacianPyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageLaplacianPyramidAdd

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageLaplacianPyramidSubtract

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageMedian

Available on crate features MPSImageMedian and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageMultiply

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageNormalizedHistogram

Available on crate features MPSImageHistogram and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImagePyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceColumnMax

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceColumnMean

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceColumnMin

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceColumnSum

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceRowMax

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceRowMean

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceRowMin

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceRowSum

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageReduceUnary

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageSobel

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageStatisticsMean

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageStatisticsMeanAndVariance

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageStatisticsMinAndMax

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageSubtract

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageTent

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageThresholdBinary

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageThresholdBinaryInverse

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageThresholdToZero

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageThresholdToZeroInverse

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageThresholdTruncate

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSImageTranspose

Available on crate features MPSImageTranspose and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSInstanceAccelerationStructure

Available on crate features MPSInstanceAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSKernel

Available on crate feature MPSCore only.
Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixBatchNormalization

Available on crate features MPSMatrixBatchNormalization and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixBatchNormalizationGradient

Available on crate features MPSMatrixBatchNormalization and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixBinaryKernel

Available on crate features MPSMatrixTypes and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixCopy

Available on crate features MPSMatrixCombination and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixCopyToImage

Available on crate features MPSImageCopy and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixDecompositionCholesky

Available on crate features MPSMatrixDecomposition and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixDecompositionLU

Available on crate features MPSMatrixDecomposition and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixFindTopK

Available on crate features MPSMatrixFindTopK and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixFullyConnected

Available on crate features MPSMatrixFullyConnected and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixFullyConnectedGradient

Available on crate features MPSMatrixFullyConnected and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixLogSoftMax

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixLogSoftMaxGradient

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixMultiplication

Available on crate features MPSMatrixMultiplication and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixNeuron

Available on crate features MPSMatrixNeuron and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixNeuronGradient

Available on crate features MPSMatrixNeuron and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixRandom

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixRandomMTGP32

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixRandomPhilox

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSoftMax

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSoftMaxGradient

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSolveCholesky

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSolveLU

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSolveTriangular

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixSum

Available on crate features MPSMatrixSum and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixUnaryKernel

Available on crate features MPSMatrixTypes and MPSMatrix and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSMatrixVectorMultiplication

Available on crate features MPSMatrixMultiplication and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayAffineInt4Dequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayBinaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayBinaryPrimaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayBinarySecondaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayGather

Available on crate features MPSNDArrayGather and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayGatherGradient

Available on crate features MPSNDArrayGather and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayIdentity

Available on crate features MPSNDArrayIdentity and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayLUTDequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayMatrixMultiplication

Available on crate features MPSNDArrayMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayMultiaryBase

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayMultiaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayMultiaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayQuantizedMatrixMultiplication

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel and MPSNDArrayMatrixMultiplication only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayStridedSlice

Available on crate features MPSNDArrayStridedSlice and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayStridedSliceGradient

Available on crate features MPSNDArrayStridedSlice and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayUnaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayUnaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNDArrayVectorLUTDequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNCompare

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNCropAndResizeBilinear

Available on crate features MPSNNResize and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNForwardLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNGramMatrixCalculation

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNGramMatrixCalculationGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNGraph

Available on crate features MPSNNGraph and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNGridSample

Available on crate features MPSNNGridSample and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNInitialGradient

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNLocalCorrelation

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNLossGradient

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNOptimizer

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNOptimizerAdam

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNOptimizerRMSProp

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNOptimizerStochasticGradientDescent

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNPad

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNPadGradient

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceBinary

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceColumnMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceColumnMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceColumnMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceColumnSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsAndWeightsMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsAndWeightsSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsArgumentMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsArgumentMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceFeatureChannelsSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceRowMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceRowMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceRowMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceRowSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReduceUnary

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReshape

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNReshapeGradient

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNResizeBilinear

Available on crate features MPSNNResize and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSNNSlice

Available on crate features MPSNNSlice and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSPolygonAccelerationStructure

Available on crate features MPSPolygonAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSQuadrilateralAccelerationStructure

Available on crate features MPSQuadrilateralAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore and MPSPolygonAccelerationStructure only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSRNNImageInferenceLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSRNNMatrixInferenceLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSRNNMatrixTrainingLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSRayIntersector

Available on crate features MPSCore and MPSRayIntersector only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSSVGF

Available on crate features MPSSVGF and MPSRayIntersector and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSTemporalAA

Available on crate features MPSTemporalAA and MPSRayIntersector and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSTriangleAccelerationStructure

Available on crate features MPSTriangleAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore and MPSPolygonAccelerationStructure only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<MPSKernel> for MPSUnaryImageKernel

Available on crate features MPSImageKernel and MPSImage and MPSCore only.
Source§

fn as_ref(&self) -> &MPSKernel

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<NSObject> for MPSKernel

Available on crate feature MPSCore only.
Source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<AnyObject> for MPSKernel

Available on crate feature MPSCore only.
Source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSAccelerationStructure

Available on crate features MPSAccelerationStructure and MPSRayIntersector and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSBinaryImageKernel

Available on crate features MPSImageKernel and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNAdd

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNAddGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNArithmetic

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNArithmeticGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBatchNormalization

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBatchNormalizationGradient

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBatchNormalizationStatistics

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBatchNormalizationStatisticsGradient

Available on crate features MPSCNNBatchNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBinaryConvolution

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBinaryFullyConnected

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNBinaryKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNConvolution

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNConvolutionGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNConvolutionTranspose

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNConvolutionTransposeGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNCrossChannelNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNCrossChannelNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNDilatedPoolingMax

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNDilatedPoolingMaxGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNDivide

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNDropout

Available on crate features MPSCNNDropout and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNDropoutGradient

Available on crate features MPSCNNDropout and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNFullyConnected

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNFullyConnectedGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNGradientKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNGroupNormalization

Available on crate features MPSCNNGroupNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNGroupNormalizationGradient

Available on crate features MPSCNNGroupNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNInstanceNormalization

Available on crate features MPSCNNInstanceNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNInstanceNormalizationGradient

Available on crate features MPSCNNInstanceNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNLocalContrastNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNLocalContrastNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNLogSoftMax

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNLogSoftMaxGradient

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNMultiaryKernel

Available on crate features MPSCNNKernel and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNMultiply

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNMultiplyGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuron

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronAbsolute

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronELU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronExponential

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronGradient

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronHardSigmoid

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronLinear

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronLogarithm

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronPReLU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronPower

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronReLU

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronReLUN

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronSigmoid

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronSoftPlus

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronSoftSign

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNNeuronTanH

Available on crate features MPSCNNNeuron and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPooling

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingAverage

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingAverageGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingL2Norm

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingL2NormGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingMax

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNPoolingMaxGradient

Available on crate features MPSCNNPooling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSoftMax

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSoftMaxGradient

Available on crate features MPSCNNSoftMax and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSpatialNormalization

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSpatialNormalizationGradient

Available on crate features MPSCNNNormalization and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSubtract

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNSubtractGradient

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsampling

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsamplingBilinear

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsamplingBilinearGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsamplingGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsamplingNearest

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNUpsamplingNearestGradient

Available on crate features MPSCNNUpsampling and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSCNNYOLOLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageAdd

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageAreaMax

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageAreaMin

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageArithmetic

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageBilinearScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageBox

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageCanny

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageConversion

Available on crate features MPSImageConversion and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageConvolution

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageCopyToMatrix

Available on crate features MPSImageCopy and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageDilate

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageDivide

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageEDLines

Available on crate features MPSImageEDLines and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageErode

Available on crate features MPSImageMorphology and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageEuclideanDistanceTransform

Available on crate features MPSImageDistanceTransform and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageFindKeypoints

Available on crate features MPSImageKeypoint and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageGaussianBlur

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageGaussianPyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageGuidedFilter

Available on crate features MPSImageGuidedFilter and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageHistogram

Available on crate features MPSImageHistogram and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageHistogramEqualization

Available on crate features MPSImageHistogram and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageHistogramSpecification

Available on crate features MPSImageHistogram and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageIntegral

Available on crate features MPSImageIntegral and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageIntegralOfSquares

Available on crate features MPSImageIntegral and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageLanczosScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageLaplacian

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageLaplacianPyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageLaplacianPyramidAdd

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageLaplacianPyramidSubtract

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageMedian

Available on crate features MPSImageMedian and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageMultiply

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageNormalizedHistogram

Available on crate features MPSImageHistogram and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImagePyramid

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceColumnMax

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceColumnMean

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceColumnMin

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceColumnSum

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceRowMax

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceRowMean

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceRowMin

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceRowSum

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageReduceUnary

Available on crate features MPSImageReduce and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageScale

Available on crate features MPSImageResampling and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageSobel

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageStatisticsMean

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageStatisticsMeanAndVariance

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageStatisticsMinAndMax

Available on crate features MPSImageStatistics and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageSubtract

Available on crate features MPSImageMath and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageTent

Available on crate features MPSImageConvolution and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageThresholdBinary

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageThresholdBinaryInverse

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageThresholdToZero

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageThresholdToZeroInverse

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageThresholdTruncate

Available on crate features MPSImageThreshold and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSImageTranspose

Available on crate features MPSImageTranspose and MPSImage and MPSCore and MPSImageKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSInstanceAccelerationStructure

Available on crate features MPSInstanceAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixBatchNormalization

Available on crate features MPSMatrixBatchNormalization and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixBatchNormalizationGradient

Available on crate features MPSMatrixBatchNormalization and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixBinaryKernel

Available on crate features MPSMatrixTypes and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixCopy

Available on crate features MPSMatrixCombination and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixCopyToImage

Available on crate features MPSImageCopy and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixDecompositionCholesky

Available on crate features MPSMatrixDecomposition and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixDecompositionLU

Available on crate features MPSMatrixDecomposition and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixFindTopK

Available on crate features MPSMatrixFindTopK and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixFullyConnected

Available on crate features MPSMatrixFullyConnected and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixFullyConnectedGradient

Available on crate features MPSMatrixFullyConnected and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixLogSoftMax

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixLogSoftMaxGradient

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixMultiplication

Available on crate features MPSMatrixMultiplication and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixNeuron

Available on crate features MPSMatrixNeuron and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixNeuronGradient

Available on crate features MPSMatrixNeuron and MPSNeuralNetwork and MPSCore and MPSMatrix and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixRandom

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixRandomMTGP32

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixRandomPhilox

Available on crate features MPSMatrixRandom and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSoftMax

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSoftMaxGradient

Available on crate features MPSMatrixSoftMax and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSolveCholesky

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSolveLU

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSolveTriangular

Available on crate features MPSMatrixSolve and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixSum

Available on crate features MPSMatrixSum and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixUnaryKernel

Available on crate features MPSMatrixTypes and MPSMatrix and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSMatrixVectorMultiplication

Available on crate features MPSMatrixMultiplication and MPSMatrix and MPSCore and MPSMatrixTypes only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayAffineInt4Dequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayBinaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayBinaryPrimaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayBinarySecondaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayGather

Available on crate features MPSNDArrayGather and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayGatherGradient

Available on crate features MPSNDArrayGather and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayIdentity

Available on crate features MPSNDArrayIdentity and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayLUTDequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayMatrixMultiplication

Available on crate features MPSNDArrayMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayMultiaryBase

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayMultiaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayMultiaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayQuantizedMatrixMultiplication

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel and MPSNDArrayMatrixMultiplication only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayStridedSlice

Available on crate features MPSNDArrayStridedSlice and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayStridedSliceGradient

Available on crate features MPSNDArrayStridedSlice and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayUnaryGradientKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayUnaryKernel

Available on crate features MPSNDArrayKernel and MPSNDArray and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNDArrayVectorLUTDequantize

Available on crate features MPSNDArrayQuantizedMatrixMultiplication and MPSNDArray and MPSCore and MPSNDArrayKernel only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNCompare

Available on crate features MPSCNNMath and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNCropAndResizeBilinear

Available on crate features MPSNNResize and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNForwardLoss

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNGramMatrixCalculation

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNGramMatrixCalculationGradient

Available on crate features MPSCNNConvolution and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNGraph

Available on crate features MPSNNGraph and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNGridSample

Available on crate features MPSNNGridSample and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNInitialGradient

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNLocalCorrelation

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNLossGradient

Available on crate features MPSCNNLoss and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNOptimizer

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNOptimizerAdam

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNOptimizerRMSProp

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNOptimizerStochasticGradientDescent

Available on crate features MPSNNOptimizers and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNPad

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNPadGradient

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceBinary

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceColumnMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceColumnMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceColumnMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceColumnSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsAndWeightsMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsAndWeightsSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsArgumentMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsArgumentMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceFeatureChannelsSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceRowMax

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceRowMean

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceRowMin

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceRowSum

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReduceUnary

Available on crate features MPSNNReduce and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReshape

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNReshapeGradient

Available on crate features MPSNNReshape and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNResizeBilinear

Available on crate features MPSNNResize and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSNNSlice

Available on crate features MPSNNSlice and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSPolygonAccelerationStructure

Available on crate features MPSPolygonAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSQuadrilateralAccelerationStructure

Available on crate features MPSQuadrilateralAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore and MPSPolygonAccelerationStructure only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSRNNImageInferenceLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCNNKernel and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSRNNMatrixInferenceLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSRNNMatrixTrainingLayer

Available on crate features MPSRNNLayer and MPSNeuralNetwork and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSRayIntersector

Available on crate features MPSCore and MPSRayIntersector only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSSVGF

Available on crate features MPSSVGF and MPSRayIntersector and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSTemporalAA

Available on crate features MPSTemporalAA and MPSRayIntersector and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSTriangleAccelerationStructure

Available on crate features MPSTriangleAccelerationStructure and MPSRayIntersector and MPSAccelerationStructure and MPSCore and MPSPolygonAccelerationStructure only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<MPSKernel> for MPSUnaryImageKernel

Available on crate features MPSImageKernel and MPSImage and MPSCore only.
Source§

fn borrow(&self) -> &MPSKernel

Immutably borrows from an owned value. Read more
Source§

impl Borrow<NSObject> for MPSKernel

Available on crate feature MPSCore only.
Source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
Source§

impl ClassType for MPSKernel

Available on crate feature MPSCore only.
Source§

const NAME: &'static str = "MPSKernel"

The name of the Objective-C class that this type represents. Read more
Source§

type Super = NSObject

The superclass of this class. Read more
Source§

type ThreadKind = <<MPSKernel as ClassType>::Super as ClassType>::ThreadKind

Whether the type can be used from any thread, or from only the main thread. Read more
Source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
Source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
Source§

impl CopyingHelper for MPSKernel

Available on crate feature MPSCore only.
Source§

type Result = MPSKernel

The immutable counterpart of the type, or Self if the type has no immutable counterpart. Read more
Source§

impl Debug for MPSKernel

Available on crate feature MPSCore only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for MPSKernel

Available on crate feature MPSCore only.
Source§

type Target = NSObject

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Hash for MPSKernel

Available on crate feature MPSCore only.
Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for MPSKernel

Available on crate feature MPSCore only.
Source§

fn retain(&self) -> Retained<Self>
where Self: Sized,

Increment the reference count of the receiver. Read more
Source§

impl NSCoding for MPSKernel

Available on crate feature MPSCore only.
Source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Safety Read more
Source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder, ) -> Option<Retained<Self>>
where Self: Sized + Message,

Safety Read more
Source§

impl NSCopying for MPSKernel

Available on crate feature MPSCore only.
Source§

fn copy(&self) -> Retained<Self::Result>
where Self: Sized + Message + CopyingHelper,

Returns a new instance that’s a copy of the receiver. Read more
Source§

unsafe fn copyWithZone(&self, zone: *mut NSZone) -> Retained<Self::Result>
where Self: Sized + Message + CopyingHelper,

Returns a new instance that’s a copy of the receiver. Read more
Source§

impl NSObjectProtocol for MPSKernel

Available on crate feature MPSCore only.
Source§

fn isEqual(&self, other: Option<&AnyObject>) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
Source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
Source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
Source§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

👎Deprecated: use isKindOfClass directly, or cast your objects with AnyObject::downcast_ref
Check if the object is an instance of the class type, or one of its subclasses. Read more
Source§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
Source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
Source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
Source§

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
Source§

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
Source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
Source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
Source§

impl NSSecureCoding for MPSKernel

Available on crate feature MPSCore only.
Source§

impl PartialEq for MPSKernel

Available on crate feature MPSCore only.
Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RefEncode for MPSKernel

Available on crate feature MPSCore only.
Source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
Source§

impl DowncastTarget for MPSKernel

Available on crate feature MPSCore only.
Source§

impl Eq for MPSKernel

Available on crate feature MPSCore only.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T> AnyThread for T
where T: ClassType<ThreadKind = dyn AnyThread + 'a> + ?Sized,

Source§

fn alloc() -> Allocated<Self>
where Self: Sized + ClassType,

Allocate a new instance of the class. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,