pub unsafe trait UIViewControllerRestoration: MainThreadOnly {
// Provided method
unsafe fn viewControllerWithRestorationIdentifierPath_coder(
identifier_components: &NSArray<NSString>,
coder: &NSCoder,
mtm: MainThreadMarker,
) -> Option<Retained<UIViewController>>
where Self: Sized + ClassType { ... }
}Available on crate feature
UIStateRestoration only.Expand description
Provided Methods§
Sourceunsafe fn viewControllerWithRestorationIdentifierPath_coder(
identifier_components: &NSArray<NSString>,
coder: &NSCoder,
mtm: MainThreadMarker,
) -> Option<Retained<UIViewController>>
Available on crate features UIResponder and UIViewController only.
unsafe fn viewControllerWithRestorationIdentifierPath_coder( identifier_components: &NSArray<NSString>, coder: &NSCoder, mtm: MainThreadMarker, ) -> Option<Retained<UIViewController>>
UIResponder and UIViewController only.§Safety
coder possibly has further requirements.
Trait Implementations§
Source§impl ProtocolType for dyn UIViewControllerRestoration
impl ProtocolType for dyn UIViewControllerRestoration
impl<T> ImplementedBy<T> for dyn UIViewControllerRestoration
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".