objc2_file_provider/generated/
NSFileProviderModifyItemOptions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/fileprovider/nsfileprovidermodifyitemoptions?language=objc)
8// NS_OPTIONS
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct NSFileProviderModifyItemOptions(pub NSUInteger);
12bitflags::bitflags! {
13    impl NSFileProviderModifyItemOptions: NSUInteger {
14/// We're moving the item to a location where it may refer to an item that already exists. This may happen
15/// when two directories are being merged together. When this happens some items may be merged to the
16/// same directory and we end up in a situation where the merged contains may also exist.
17///
18/// This is similar to NSFileProviderCreateItemMayAlreadyExist
19        #[doc(alias = "NSFileProviderModifyItemMayAlreadyExist")]
20        const MayAlreadyExist = 1<<0;
21    }
22}
23
24unsafe impl Encode for NSFileProviderModifyItemOptions {
25    const ENCODING: Encoding = NSUInteger::ENCODING;
26}
27
28unsafe impl RefEncode for NSFileProviderModifyItemOptions {
29    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
30}