ARAnchorCopying

Trait ARAnchorCopying 

Source
pub unsafe trait ARAnchorCopying: NSCopying {
    // Provided method
    unsafe fn initWithAnchor(
        this: Allocated<Self>,
        anchor: &ARAnchor,
    ) -> Retained<Self>
       where Self: Sized + Message { ... }
}
Available on crate features ARAnchor and objc2 and objc2-foundation only.
Expand description

An anchor object that can be copied from values of an existing anchor.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn initWithAnchor( this: Allocated<Self>, anchor: &ARAnchor, ) -> Retained<Self>
where Self: Sized + Message,

Initializes a new anchor object copying values from an existing anchor.

This initializer will be called any time copy is called on anchor of this class. This method must be implemented for any ARAnchor subclasses that adds properties.

Parameter anchor: The anchor from which to copy values.

Trait Implementations§

Source§

impl ProtocolType for dyn ARAnchorCopying

Source§

const NAME: &'static str = "ARAnchorCopying"

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

fn protocol() -> Option<&'static AnyProtocol>

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

impl<T> ImplementedBy<T> for dyn ARAnchorCopying

Implementations on Foreign Types§

Source§

impl<T> ARAnchorCopying for ProtocolObject<T>
where T: ?Sized + ARAnchorCopying,

Implementors§

Source§

impl ARAnchorCopying for ARAnchor

Source§

impl ARAnchorCopying for ARAppClipCodeAnchor

Available on crate feature ARAppClipCodeAnchor only.
Source§

impl ARAnchorCopying for ARBodyAnchor

Available on crate feature ARBodyAnchor only.
Source§

impl ARAnchorCopying for AREnvironmentProbeAnchor

Available on crate feature AREnvironmentProbeAnchor only.
Source§

impl ARAnchorCopying for ARFaceAnchor

Available on crate feature ARFaceAnchor only.
Source§

impl ARAnchorCopying for ARGeoAnchor

Available on crate feature ARGeoAnchor only.
Source§

impl ARAnchorCopying for ARImageAnchor

Available on crate feature ARImageAnchor only.
Source§

impl ARAnchorCopying for ARMeshAnchor

Available on crate feature ARMeshAnchor only.
Source§

impl ARAnchorCopying for ARObjectAnchor

Available on crate feature ARObjectAnchor only.
Source§

impl ARAnchorCopying for ARParticipantAnchor

Available on crate feature ARParticipantAnchor only.
Source§

impl ARAnchorCopying for ARPlaneAnchor

Available on crate feature ARPlaneAnchor only.