Struct icrate::Foundation::NSURL

source ·
#[repr(C)]
pub struct NSURL { /* private fields */ }
Available on crate features Foundation and Foundation_NSURL only.

Implementations§

source§

impl NSURL

NSPasteboardSupport

source

pub unsafe fn URLFromPasteboard(paste_board: &NSPasteboard) -> Option<Id<NSURL>>

Available on crate features AppKit and AppKit_NSPasteboard only.
source

pub unsafe fn writeToPasteboard(&self, paste_board: &NSPasteboard)

Available on crate features AppKit and AppKit_NSPasteboard only.
source§

impl NSURL

source

pub unsafe fn initWithScheme_host_path( this: Option<Allocated<Self>>, scheme: &NSString, host: Option<&NSString>, path: &NSString ) -> Option<Id<Self>>

👎Deprecated: Use NSURLComponents instead, which lets you create a valid URL with any valid combination of URL components and subcomponents (not just scheme, host and path), and lets you set components and subcomponents with either percent-encoded or un-percent-encoded strings.
Available on crate feature Foundation_NSString only.
source

pub unsafe fn initFileURLWithPath_isDirectory_relativeToURL( this: Option<Allocated<Self>>, path: &NSString, is_dir: bool, base_url: Option<&NSURL> ) -> Id<Self>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initFileURLWithPath_relativeToURL( this: Option<Allocated<Self>>, path: &NSString, base_url: Option<&NSURL> ) -> Id<Self>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initFileURLWithPath_isDirectory( this: Option<Allocated<Self>>, path: &NSString, is_dir: bool ) -> Id<Self>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initFileURLWithPath( this: Option<Allocated<Self>>, path: &NSString ) -> Id<Self>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn fileURLWithPath_isDirectory_relativeToURL( path: &NSString, is_dir: bool, base_url: Option<&NSURL> ) -> Id<NSURL>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn fileURLWithPath_relativeToURL( path: &NSString, base_url: Option<&NSURL> ) -> Id<NSURL>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn fileURLWithPath_isDirectory( path: &NSString, is_dir: bool ) -> Id<NSURL>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn fileURLWithPath(path: &NSString) -> Id<NSURL>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL( this: Option<Allocated<Self>>, path: NonNull<c_char>, is_dir: bool, base_url: Option<&NSURL> ) -> Id<Self>

source

pub unsafe fn fileURLWithFileSystemRepresentation_isDirectory_relativeToURL( path: NonNull<c_char>, is_dir: bool, base_url: Option<&NSURL> ) -> Id<NSURL>

source

pub unsafe fn initWithString( this: Option<Allocated<Self>>, url_string: &NSString ) -> Option<Id<Self>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initWithString_relativeToURL( this: Option<Allocated<Self>>, url_string: &NSString, base_url: Option<&NSURL> ) -> Option<Id<Self>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLWithString(url_string: &NSString) -> Option<Id<Self>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLWithString_relativeToURL( url_string: &NSString, base_url: Option<&NSURL> ) -> Option<Id<Self>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn initWithDataRepresentation_relativeToURL( this: Option<Allocated<Self>>, data: &NSData, base_url: Option<&NSURL> ) -> Id<Self>

Available on crate feature Foundation_NSData only.
source

pub unsafe fn URLWithDataRepresentation_relativeToURL( data: &NSData, base_url: Option<&NSURL> ) -> Id<NSURL>

Available on crate feature Foundation_NSData only.
source

pub unsafe fn initAbsoluteURLWithDataRepresentation_relativeToURL( this: Option<Allocated<Self>>, data: &NSData, base_url: Option<&NSURL> ) -> Id<Self>

Available on crate feature Foundation_NSData only.
source

pub unsafe fn absoluteURLWithDataRepresentation_relativeToURL( data: &NSData, base_url: Option<&NSURL> ) -> Id<NSURL>

Available on crate feature Foundation_NSData only.
source

pub unsafe fn dataRepresentation(&self) -> Id<NSData>

Available on crate feature Foundation_NSData only.
source

pub unsafe fn absoluteString(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn relativeString(&self) -> Id<NSString>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn baseURL(&self) -> Option<Id<NSURL>>

source

pub unsafe fn absoluteURL(&self) -> Option<Id<NSURL>>

source

pub unsafe fn scheme(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn resourceSpecifier(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn host(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn port(&self) -> Option<Id<NSNumber>>

Available on crate feature Foundation_NSNumber only.
source

pub unsafe fn user(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn password(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn path(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn fragment(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn parameterString(&self) -> Option<Id<NSString>>

👎Deprecated: The parameterString method is deprecated. Post deprecation for applications linked with or after the macOS 10.15, and for all iOS, watchOS, and tvOS applications, parameterString will always return nil, and the path method will return the complete path including the semicolon separator and params component if the URL string contains them.
Available on crate feature Foundation_NSString only.
source

pub unsafe fn query(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn relativePath(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn hasDirectoryPath(&self) -> bool

source

pub unsafe fn getFileSystemRepresentation_maxLength( &self, buffer: NonNull<c_char>, max_buffer_length: NSUInteger ) -> bool

source

pub unsafe fn fileSystemRepresentation(&self) -> NonNull<c_char>

source

pub unsafe fn isFileURL(&self) -> bool

source

pub unsafe fn standardizedURL(&self) -> Option<Id<NSURL>>

source

pub unsafe fn checkResourceIsReachableAndReturnError( &self ) -> Result<(), Id<NSError>>

Available on crate feature Foundation_NSError only.
source

pub unsafe fn isFileReferenceURL(&self) -> bool

source

pub unsafe fn fileReferenceURL(&self) -> Option<Id<NSURL>>

source

pub unsafe fn filePathURL(&self) -> Option<Id<NSURL>>

source

pub unsafe fn getResourceValue_forKey_error( &self, value: &mut Option<Id<AnyObject>>, key: &NSURLResourceKey ) -> Result<(), Id<NSError>>

Available on crate feature Foundation_NSError only.
source

pub unsafe fn resourceValuesForKeys_error( &self, keys: &NSArray<NSURLResourceKey> ) -> Result<Id<NSDictionary<NSURLResourceKey, AnyObject>>, Id<NSError>>

Available on crate features Foundation_NSArray and Foundation_NSDictionary and Foundation_NSError only.
source

pub unsafe fn setResourceValue_forKey_error( &self, value: Option<&AnyObject>, key: &NSURLResourceKey ) -> Result<(), Id<NSError>>

Available on crate feature Foundation_NSError only.
source

pub unsafe fn setResourceValues_error( &self, keyed_values: &NSDictionary<NSURLResourceKey, AnyObject> ) -> Result<(), Id<NSError>>

Available on crate features Foundation_NSDictionary and Foundation_NSError only.
source

pub unsafe fn removeCachedResourceValueForKey(&self, key: &NSURLResourceKey)

source

pub unsafe fn removeAllCachedResourceValues(&self)

source

pub unsafe fn setTemporaryResourceValue_forKey( &self, value: Option<&AnyObject>, key: &NSURLResourceKey )

source

pub unsafe fn bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error( &self, options: NSURLBookmarkCreationOptions, keys: Option<&NSArray<NSURLResourceKey>>, relative_url: Option<&NSURL> ) -> Result<Id<NSData>, Id<NSError>>

Available on crate features Foundation_NSArray and Foundation_NSData and Foundation_NSError only.
source

pub unsafe fn initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error( this: Option<Allocated<Self>>, bookmark_data: &NSData, options: NSURLBookmarkResolutionOptions, relative_url: Option<&NSURL>, is_stale: *mut Bool ) -> Result<Id<Self>, Id<NSError>>

Available on crate features Foundation_NSData and Foundation_NSError only.
source

pub unsafe fn URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error( bookmark_data: &NSData, options: NSURLBookmarkResolutionOptions, relative_url: Option<&NSURL>, is_stale: *mut Bool ) -> Result<Id<Self>, Id<NSError>>

Available on crate features Foundation_NSData and Foundation_NSError only.
source

pub unsafe fn resourceValuesForKeys_fromBookmarkData( keys: &NSArray<NSURLResourceKey>, bookmark_data: &NSData ) -> Option<Id<NSDictionary<NSURLResourceKey, AnyObject>>>

Available on crate features Foundation_NSArray and Foundation_NSData and Foundation_NSDictionary only.
source

pub unsafe fn writeBookmarkData_toURL_options_error( bookmark_data: &NSData, bookmark_file_url: &NSURL, options: NSURLBookmarkFileCreationOptions ) -> Result<(), Id<NSError>>

Available on crate features Foundation_NSData and Foundation_NSError only.
source

pub unsafe fn bookmarkDataWithContentsOfURL_error( bookmark_file_url: &NSURL ) -> Result<Id<NSData>, Id<NSError>>

Available on crate features Foundation_NSData and Foundation_NSError only.
source

pub unsafe fn URLByResolvingAliasFileAtURL_options_error( url: &NSURL, options: NSURLBookmarkResolutionOptions ) -> Result<Id<Self>, Id<NSError>>

Available on crate feature Foundation_NSError only.
source

pub unsafe fn startAccessingSecurityScopedResource(&self) -> bool

source

pub unsafe fn stopAccessingSecurityScopedResource(&self)

source§

impl NSURL

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>

source

pub unsafe fn new() -> Id<Self>

source§

impl NSURL

NSPromisedItems

source

pub unsafe fn getPromisedItemResourceValue_forKey_error( &self, value: &mut Option<Id<AnyObject>>, key: &NSURLResourceKey ) -> Result<(), Id<NSError>>

Available on crate feature Foundation_NSError only.
source

pub unsafe fn promisedItemResourceValuesForKeys_error( &self, keys: &NSArray<NSURLResourceKey> ) -> Result<Id<NSDictionary<NSURLResourceKey, AnyObject>>, Id<NSError>>

Available on crate features Foundation_NSArray and Foundation_NSDictionary and Foundation_NSError only.
source

pub unsafe fn checkPromisedItemIsReachableAndReturnError( &self ) -> Result<(), Id<NSError>>

Available on crate feature Foundation_NSError only.
source§

impl NSURL

This impl block contains no items.

NSItemProvider

source§

impl NSURL

NSURLPathUtilities

source

pub unsafe fn fileURLWithPathComponents( components: &NSArray<NSString> ) -> Option<Id<NSURL>>

Available on crate features Foundation_NSArray and Foundation_NSString only.
source

pub unsafe fn pathComponents(&self) -> Option<Id<NSArray<NSString>>>

Available on crate features Foundation_NSArray and Foundation_NSString only.
source

pub unsafe fn lastPathComponent(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn pathExtension(&self) -> Option<Id<NSString>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLByAppendingPathComponent( &self, path_component: &NSString ) -> Option<Id<NSURL>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLByAppendingPathComponent_isDirectory( &self, path_component: &NSString, is_directory: bool ) -> Option<Id<NSURL>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLByDeletingLastPathComponent(&self) -> Option<Id<NSURL>>

source

pub unsafe fn URLByAppendingPathExtension( &self, path_extension: &NSString ) -> Option<Id<NSURL>>

Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLByDeletingPathExtension(&self) -> Option<Id<NSURL>>

source

pub unsafe fn URLByStandardizingPath(&self) -> Option<Id<NSURL>>

source

pub unsafe fn URLByResolvingSymlinksInPath(&self) -> Option<Id<NSURL>>

source§

impl NSURL

NSURLLoading

source

pub unsafe fn resourceDataUsingCache( &self, should_use_cache: bool ) -> Option<Id<NSData>>

👎Deprecated: Use NSURLConnection instead
Available on crate feature Foundation_NSData only.
source

pub unsafe fn loadResourceDataNotifyingClient_usingCache( &self, client: &AnyObject, should_use_cache: bool )

👎Deprecated: Use NSURLConnection instead
source

pub unsafe fn propertyForKey( &self, property_key: &NSString ) -> Option<Id<AnyObject>>

👎Deprecated: Use NSURLConnection instead
Available on crate feature Foundation_NSString only.
source

pub unsafe fn setResourceData(&self, data: &NSData) -> bool

👎Deprecated: Use NSURLConnection instead
Available on crate feature Foundation_NSData only.
source

pub unsafe fn setProperty_forKey( &self, property: &AnyObject, property_key: &NSString ) -> bool

👎Deprecated: Use NSURLConnection instead
Available on crate feature Foundation_NSString only.
source

pub unsafe fn URLHandleUsingCache( &self, should_use_cache: bool ) -> Option<Id<NSURLHandle>>

👎Deprecated: Use NSURLConnection instead
Available on crate feature Foundation_NSURLHandle only.
source§

impl NSURL

UTAdditions

source

pub unsafe fn URLByAppendingPathComponent_conformingToType( &self, partial_name: &NSString, content_type: &UTType ) -> Id<NSURL>

Available on crate features UniformTypeIdentifiers and Foundation_NSString and UniformTypeIdentifiers_UTType only.
source

pub unsafe fn URLByAppendingPathExtensionForType( &self, content_type: &UTType ) -> Id<NSURL>

Available on crate features UniformTypeIdentifiers and UniformTypeIdentifiers_UTType only.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &AnyClass

Dynamically find the class of this object.

source

pub unsafe fn ivar_ptr<T>(&self, name: &str) -> *mut Twhere T: Encode,

Returns a pointer to the instance variable / ivar with the given name.

This is similar to UnsafeCell::get, see that for more information on what is and isn’t safe to do.

Usually you will have defined the instance variable yourself with ClassBuilder::add_ivar, the type of the ivar T must match the type used in that.

Attempting to access or modify private implementation details of a class that you do no control using this is not supported, and may invoke undefined behaviour.

Library implementors are strongly encouraged to expose a safe interface to the ivar.

Panics

May panic if the object has no ivar with the given name. May also panic if the type encoding of the ivar differs from the type encoding of T.

This should purely seen as help while debugging and is not guaranteed (e.g. it may be disabled when debug_assertions are off).

Safety

The object must have an instance variable with the given name, and it must be of type T. Any invariants that the object have assumed about the value of the instance variable must not be violated.

No thread syncronization is done on accesses to the variable, so you must ensure that any access to the returned pointer do not cause data races, and that Rust’s mutability rules are not otherwise violated.

source

pub unsafe fn ivar<T>(&self, name: &str) -> &Twhere T: Encode,

Returns a reference to the instance variable with the given name.

See AnyObject::ivar_ptr for more information, including on when this panics.

Safety

The object must have an instance variable with the given name, and it must be of type T.

No thread syncronization is done, so you must ensure that no other thread is concurrently mutating the variable. This requirement can be considered upheld if all mutation happens through AnyObject::ivar_mut (since that takes &mut self).

source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere T: Encode,

👎Deprecated: Use AnyObject::ivar instead.
source

pub unsafe fn ivar_mut<T>(&mut self, name: &str) -> &mut Twhere T: Encode,

Returns a mutable reference to the ivar with the given name.

See AnyObject::ivar_ptr for more information, including on when this panics.

Safety

The object must have an instance variable with the given name, and it must be of type T.

This access happens through &mut self, which means we know it to be the only reference, hence you do not need to do any work to ensure that data races do not happen.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere T: Encode,

👎Deprecated: Use AnyObject::ivar_mut instead.
source

pub unsafe fn set_ivar<T>(&mut self, name: &str, value: T)where T: Encode,

Sets the value of the ivar with the given name.

This is a shorthand for AnyObject::ivar_mut, see that for more information.

Safety

Same as AnyObject::ivar_mut.

Trait Implementations§

source§

impl AsMut<AnyObject> for NSURL

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for NSURL

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSURL> for NSURL

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for NSURL

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSObject> for NSURL

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSURL> for NSURL

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<AnyObject> for NSURL

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for NSURL

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for NSURL

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for NSURL

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl ClassType for NSURL

§

type Super = NSObject

The superclass of this class. Read more
§

type Mutability = InteriorMutable

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = _

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Id<Self>where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

fn alloc() -> Option<Allocated<Self>>where Self: IsAllocableAnyThread,

Allocate a new instance of the class. Read more
source§

impl Debug for NSURL

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for NSURL

§

type Target = NSObject

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for NSURL

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Hash for NSURL

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NSCoding for NSURL

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)where Self: Sized + Message,

Available on crate feature Foundation_NSCoder only.
source§

unsafe fn initWithCoder( this: Option<Allocated<Self>>, coder: &NSCoder ) -> Option<Id<Self>>where Self: Sized + Message,

Available on crate feature Foundation_NSCoder only.
source§

impl NSCopying for NSURL

source§

fn copy(&self) -> Id<<Self::Mutability as Copyhelper<Self>>::CopyOutput>where Self: Sized + ClassType, Self::Mutability: Copyhelper<Self>,

Returns a new instance that’s a copy of the receiver. Read more
source§

impl NSItemProviderReading for NSURL

source§

unsafe fn readableTypeIdentifiersForItemProvider() -> Id<NSArray<NSString>>where Self: Sized + ClassType,

Available on crate features Foundation_NSArray and Foundation_NSString only.
source§

unsafe fn objectWithItemProviderData_typeIdentifier_error( data: &NSData, type_identifier: &NSString ) -> Result<Id<Self>, Id<NSError>>where Self: Sized + ClassType,

Available on crate features Foundation_NSData and Foundation_NSError and Foundation_NSString only.
source§

impl NSItemProviderWriting for NSURL

source§

unsafe fn writableTypeIdentifiersForItemProvider_class( ) -> Id<NSArray<NSString>>where Self: Sized + ClassType,

Available on crate features Foundation_NSArray and Foundation_NSString only.
source§

unsafe fn writableTypeIdentifiersForItemProvider(&self) -> Id<NSArray<NSString>>where Self: Sized + Message,

Available on crate features Foundation_NSArray and Foundation_NSString only.
source§

unsafe fn itemProviderVisibilityForRepresentationWithTypeIdentifier_class( type_identifier: &NSString ) -> NSItemProviderRepresentationVisibilitywhere Self: Sized + ClassType,

Available on crate feature Foundation_NSString only.
source§

unsafe fn itemProviderVisibilityForRepresentationWithTypeIdentifier( &self, type_identifier: &NSString ) -> NSItemProviderRepresentationVisibilitywhere Self: Sized + Message,

Available on crate feature Foundation_NSString only.
source§

unsafe fn loadDataWithTypeIdentifier_forItemProviderCompletionHandler( &self, type_identifier: &NSString, completion_handler: &Block<(*mut NSData, *mut NSError), ()> ) -> Option<Id<NSProgress>>where Self: Sized + Message,

Available on crate features Foundation_NSData and Foundation_NSError and Foundation_NSProgress and Foundation_NSString only.
source§

impl NSObjectProtocol for NSURL

source§

fn is_kind_of<T>(&self) -> boolwhere T: ClassType, Self: Sized + Message,

Check if the object is an instance of the class, or one of it’s subclasses. Read more
source§

impl NSPasteboardReading for NSURL

Available on crate feature AppKit only.
source§

unsafe fn readableTypesForPasteboard( pasteboard: &NSPasteboard ) -> Id<NSArray<NSPasteboardType>>where Self: Sized + ClassType,

Available on crate features AppKit_NSPasteboard and Foundation_NSArray only.
source§

unsafe fn readingOptionsForType_pasteboard( type: &NSPasteboardType, pasteboard: &NSPasteboard ) -> NSPasteboardReadingOptionswhere Self: Sized + ClassType,

Available on crate feature AppKit_NSPasteboard only.
source§

unsafe fn initWithPasteboardPropertyList_ofType( this: Option<Allocated<Self>>, property_list: &AnyObject, type: &NSPasteboardType ) -> Option<Id<Self>>where Self: Sized + Message,

source§

impl NSPasteboardWriting for NSURL

Available on crate feature AppKit only.
source§

unsafe fn writableTypesForPasteboard( &self, pasteboard: &NSPasteboard ) -> Id<NSArray<NSPasteboardType>>where Self: Sized + Message,

Available on crate features AppKit_NSPasteboard and Foundation_NSArray only.
source§

unsafe fn writingOptionsForType_pasteboard( &self, type: &NSPasteboardType, pasteboard: &NSPasteboard ) -> NSPasteboardWritingOptionswhere Self: Sized + Message,

Available on crate feature AppKit_NSPasteboard only.
source§

unsafe fn pasteboardPropertyListForType( &self, type: &NSPasteboardType ) -> Option<Id<AnyObject>>where Self: Sized + Message,

source§

impl NSSecureCoding for NSURL

source§

unsafe fn supportsSecureCoding() -> boolwhere Self: Sized + ClassType,

source§

impl PartialEq<NSURL> for NSURL

source§

fn eq(&self, other: &NSURL) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefEncode for NSURL

source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl Eq for NSURL

source§

impl Message for NSURL

source§

impl StructuralEq for NSURL

source§

impl StructuralPartialEq for NSURL

Auto Trait Implementations§

§

impl !RefUnwindSafe for NSURL

§

impl !Send for NSURL

§

impl !Sync for NSURL

§

impl !Unpin for NSURL

§

impl !UnwindSafe for NSURL

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for Twhere T: ?Sized,

source§

impl<T> IsAllocableAnyThread for Twhere T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

source§

impl<T> IsIdCloneable for Twhere T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsRetainable for Twhere T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,