pub struct DataScannerViewController;Expand description
Availability metadata for the iOS-only DataScannerViewController; it is not wrapped on macOS.
Implementations§
Source§impl DataScannerViewController
impl DataScannerViewController
Sourcepub fn support_info() -> Result<AreaSupportInfo, VisionKitError>
pub fn support_info() -> Result<AreaSupportInfo, VisionKitError>
Returns VisionKit availability metadata for this area.
Sourcepub fn is_available_on_current_platform() -> Result<bool, VisionKitError>
pub fn is_available_on_current_platform() -> Result<bool, VisionKitError>
Returns whether this VisionKit area is available on the current platform.
Sourcepub fn new() -> Result<Self, VisionKitError>
pub fn new() -> Result<Self, VisionKitError>
Always returns VisionKitError::UnavailableOnThisPlatform on macOS.
Auto Trait Implementations§
impl Forget for DataScannerViewController
impl Freeze for DataScannerViewController
impl Move for DataScannerViewController
impl RefUnwindSafe for DataScannerViewController
impl Send for DataScannerViewController
impl Sync for DataScannerViewController
impl Unpin for DataScannerViewController
impl UnsafeUnpin for DataScannerViewController
impl UnwindSafe for DataScannerViewController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more