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§
Sourceunsafe fn initWithAnchor(
this: Allocated<Self>,
anchor: &ARAnchor,
) -> Retained<Self>
unsafe fn initWithAnchor( this: Allocated<Self>, anchor: &ARAnchor, ) -> Retained<Self>
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
impl ProtocolType for dyn ARAnchorCopying
impl<T> ImplementedBy<T> for dyn ARAnchorCopying
Implementations on Foreign Types§
impl<T> ARAnchorCopying for ProtocolObject<T>where
T: ?Sized + ARAnchorCopying,
Implementors§
impl ARAnchorCopying for ARAnchor
impl ARAnchorCopying for ARAppClipCodeAnchor
Available on crate feature
ARAppClipCodeAnchor only.impl ARAnchorCopying for ARBodyAnchor
Available on crate feature
ARBodyAnchor only.impl ARAnchorCopying for AREnvironmentProbeAnchor
Available on crate feature
AREnvironmentProbeAnchor only.impl ARAnchorCopying for ARFaceAnchor
Available on crate feature
ARFaceAnchor only.impl ARAnchorCopying for ARGeoAnchor
Available on crate feature
ARGeoAnchor only.impl ARAnchorCopying for ARImageAnchor
Available on crate feature
ARImageAnchor only.impl ARAnchorCopying for ARMeshAnchor
Available on crate feature
ARMeshAnchor only.impl ARAnchorCopying for ARObjectAnchor
Available on crate feature
ARObjectAnchor only.impl ARAnchorCopying for ARParticipantAnchor
Available on crate feature
ARParticipantAnchor only.impl ARAnchorCopying for ARPlaneAnchor
Available on crate feature
ARPlaneAnchor only.