pub trait NSURL: Sized {
Show 64 methods
// Required methods
unsafe fn alloc(_: Self) -> *mut Object;
unsafe fn URLWithString_(_: Self, string: *mut Object) -> *mut Object;
unsafe fn initWithString_(self, string: *mut Object) -> *mut Object;
unsafe fn URLWithString_relativeToURL_(
_: Self,
string: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn initWithString_relativeToURL_(
self,
string: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn fileURLWithPath_isDirectory_(
_: Self,
path: *mut Object,
is_dir: i8,
) -> *mut Object;
unsafe fn initFileURLWithPath_isDirectory_(
self,
path: *mut Object,
is_dir: i8,
) -> *mut Object;
unsafe fn fileURLWithPath_relativeToURL_(
_: Self,
path: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn initFileURLWithPath_relativeToURL_(
self,
path: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn fileURLWithPath_isDirectory_relativeToURL_(
_: Self,
path: *mut Object,
is_dir: i8,
url: *mut Object,
) -> *mut Object;
unsafe fn initFileURLWithPath_isDirectory_relativeToURL_(
self,
path: *mut Object,
is_dir: i8,
url: *mut Object,
) -> *mut Object;
unsafe fn fileURLWithPath_(_: Self, path: *mut Object) -> *mut Object;
unsafe fn initFileURLWithPath_(self, path: *mut Object) -> *mut Object;
unsafe fn fileURLWithPathComponents_(
_: Self,
path_components: *mut Object,
) -> *mut Object;
unsafe fn URLByResolvingAliasFileAtURL_options_error_(
_: Self,
url: *mut Object,
options: NSURLBookmarkResolutionOptions,
error: *mut *mut Object,
) -> *mut Object;
unsafe fn URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_(
_: Self,
data: *mut Object,
options: NSURLBookmarkResolutionOptions,
relative_to_url: *mut Object,
is_stale: *mut i8,
error: *mut *mut Object,
) -> *mut Object;
unsafe fn initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_(
self,
data: *mut Object,
options: NSURLBookmarkResolutionOptions,
relative_to_url: *mut Object,
is_stale: *mut i8,
error: *mut *mut Object,
) -> *mut Object;
unsafe fn absoluteURLWithDataRepresentation_relativeToURL_(
_: Self,
data: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn initAbsoluteURLWithDataRepresentation_relativeToURL_(
self,
data: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn URLWithDataRepresentation_relativeToURL_(
_: Self,
data: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn initWithDataRepresentation_relativeToURL_(
self,
data: *mut Object,
url: *mut Object,
) -> *mut Object;
unsafe fn dataRepresentation(self) -> *mut Object;
unsafe fn isEqual_(self, id: *mut Object) -> i8;
unsafe fn checkResourceIsReachableAndReturnError_(
self,
error: *mut Object,
) -> i8;
unsafe fn isFileReferenceURL(self) -> i8;
unsafe fn isFileURL(self) -> i8;
unsafe fn absoluteString(self) -> *mut Object;
unsafe fn absoluteURL(self) -> *mut Object;
unsafe fn baseURL(self) -> *mut Object;
unsafe fn fragment(self) -> *mut Object;
unsafe fn host(self) -> *mut Object;
unsafe fn lastPathComponent(self) -> *mut Object;
unsafe fn parameterString(self) -> *mut Object;
unsafe fn password(self) -> *mut Object;
unsafe fn path(self) -> *mut Object;
unsafe fn pathComponents(self) -> *mut Object;
unsafe fn pathExtension(self) -> *mut Object;
unsafe fn port(self) -> *mut Object;
unsafe fn query(self) -> *mut Object;
unsafe fn relativePath(self) -> *mut Object;
unsafe fn relativeString(self) -> *mut Object;
unsafe fn resourceSpecifier(self) -> *mut Object;
unsafe fn scheme(self) -> *mut Object;
unsafe fn standardizedURL(self) -> *mut Object;
unsafe fn user(self) -> *mut Object;
unsafe fn NSURLResourceKey(self) -> *mut Object;
unsafe fn filePathURL(self) -> *mut Object;
unsafe fn fileReferenceURL(self) -> *mut Object;
unsafe fn URLByAppendingPathComponent_(
self,
path_component: *mut Object,
) -> *mut Object;
unsafe fn URLByAppendingPathComponent_isDirectory_(
self,
path_component: *mut Object,
is_dir: i8,
) -> *mut Object;
unsafe fn URLByAppendingPathExtension_(
self,
extension: *mut Object,
) -> *mut Object;
unsafe fn URLByDeletingLastPathComponent(self) -> *mut Object;
unsafe fn URLByDeletingPathExtension(self) -> *mut Object;
unsafe fn URLByResolvingSymlinksInPath(self) -> *mut Object;
unsafe fn URLByStandardizingPath(self) -> *mut Object;
unsafe fn hasDirectoryPath(self) -> i8;
unsafe fn bookmarkDataWithContentsOfURL_error_(
_: Self,
url: *mut Object,
error: *mut Object,
) -> *mut Object;
unsafe fn bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_(
self,
options: NSURLBookmarkCreationOptions,
resource_value_for_keys: *mut Object,
relative_to_url: *mut Object,
error: *mut Object,
) -> *mut Object;
unsafe fn writeBookmarkData_toURL_options_error_(
_: Self,
data: *mut Object,
to_url: *mut Object,
options: NSURLBookmarkCreationOptions,
error: *mut Object,
) -> *mut Object;
unsafe fn startAccessingSecurityScopedResource(self) -> i8;
unsafe fn stopAccessingSecurityScopedResource(self);
unsafe fn NSURLBookmarkFileCreationOptions(
self,
) -> NSURLBookmarkCreationOptions;
unsafe fn NSURLBookmarkCreationOptions(self) -> NSURLBookmarkCreationOptions;
unsafe fn NSURLBookmarkResolutionOptions(
self,
) -> NSURLBookmarkResolutionOptions;
}Required Methods§
unsafe fn alloc(_: Self) -> *mut Object
unsafe fn URLWithString_(_: Self, string: *mut Object) -> *mut Object
unsafe fn initWithString_(self, string: *mut Object) -> *mut Object
unsafe fn URLWithString_relativeToURL_( _: Self, string: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn initWithString_relativeToURL_( self, string: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn fileURLWithPath_isDirectory_( _: Self, path: *mut Object, is_dir: i8, ) -> *mut Object
unsafe fn initFileURLWithPath_isDirectory_( self, path: *mut Object, is_dir: i8, ) -> *mut Object
unsafe fn fileURLWithPath_relativeToURL_( _: Self, path: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn initFileURLWithPath_relativeToURL_( self, path: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn fileURLWithPath_isDirectory_relativeToURL_( _: Self, path: *mut Object, is_dir: i8, url: *mut Object, ) -> *mut Object
unsafe fn initFileURLWithPath_isDirectory_relativeToURL_( self, path: *mut Object, is_dir: i8, url: *mut Object, ) -> *mut Object
unsafe fn fileURLWithPath_(_: Self, path: *mut Object) -> *mut Object
unsafe fn initFileURLWithPath_(self, path: *mut Object) -> *mut Object
unsafe fn fileURLWithPathComponents_( _: Self, path_components: *mut Object, ) -> *mut Object
unsafe fn URLByResolvingAliasFileAtURL_options_error_( _: Self, url: *mut Object, options: NSURLBookmarkResolutionOptions, error: *mut *mut Object, ) -> *mut Object
unsafe fn URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( _: Self, data: *mut Object, options: NSURLBookmarkResolutionOptions, relative_to_url: *mut Object, is_stale: *mut i8, error: *mut *mut Object, ) -> *mut Object
unsafe fn initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( self, data: *mut Object, options: NSURLBookmarkResolutionOptions, relative_to_url: *mut Object, is_stale: *mut i8, error: *mut *mut Object, ) -> *mut Object
unsafe fn absoluteURLWithDataRepresentation_relativeToURL_( _: Self, data: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn initAbsoluteURLWithDataRepresentation_relativeToURL_( self, data: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn URLWithDataRepresentation_relativeToURL_( _: Self, data: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn initWithDataRepresentation_relativeToURL_( self, data: *mut Object, url: *mut Object, ) -> *mut Object
unsafe fn dataRepresentation(self) -> *mut Object
unsafe fn isEqual_(self, id: *mut Object) -> i8
unsafe fn checkResourceIsReachableAndReturnError_( self, error: *mut Object, ) -> i8
unsafe fn isFileReferenceURL(self) -> i8
unsafe fn isFileURL(self) -> i8
unsafe fn absoluteString(self) -> *mut Object
unsafe fn absoluteURL(self) -> *mut Object
unsafe fn baseURL(self) -> *mut Object
unsafe fn fragment(self) -> *mut Object
unsafe fn host(self) -> *mut Object
unsafe fn lastPathComponent(self) -> *mut Object
unsafe fn parameterString(self) -> *mut Object
unsafe fn password(self) -> *mut Object
unsafe fn path(self) -> *mut Object
unsafe fn pathComponents(self) -> *mut Object
unsafe fn pathExtension(self) -> *mut Object
unsafe fn port(self) -> *mut Object
unsafe fn query(self) -> *mut Object
unsafe fn relativePath(self) -> *mut Object
unsafe fn relativeString(self) -> *mut Object
unsafe fn resourceSpecifier(self) -> *mut Object
unsafe fn scheme(self) -> *mut Object
unsafe fn standardizedURL(self) -> *mut Object
unsafe fn user(self) -> *mut Object
unsafe fn NSURLResourceKey(self) -> *mut Object
unsafe fn filePathURL(self) -> *mut Object
unsafe fn fileReferenceURL(self) -> *mut Object
unsafe fn URLByAppendingPathComponent_( self, path_component: *mut Object, ) -> *mut Object
unsafe fn URLByAppendingPathComponent_isDirectory_( self, path_component: *mut Object, is_dir: i8, ) -> *mut Object
unsafe fn URLByAppendingPathExtension_( self, extension: *mut Object, ) -> *mut Object
unsafe fn URLByDeletingLastPathComponent(self) -> *mut Object
unsafe fn URLByDeletingPathExtension(self) -> *mut Object
unsafe fn URLByResolvingSymlinksInPath(self) -> *mut Object
unsafe fn URLByStandardizingPath(self) -> *mut Object
unsafe fn hasDirectoryPath(self) -> i8
unsafe fn bookmarkDataWithContentsOfURL_error_( _: Self, url: *mut Object, error: *mut Object, ) -> *mut Object
unsafe fn bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( self, options: NSURLBookmarkCreationOptions, resource_value_for_keys: *mut Object, relative_to_url: *mut Object, error: *mut Object, ) -> *mut Object
unsafe fn writeBookmarkData_toURL_options_error_( _: Self, data: *mut Object, to_url: *mut Object, options: NSURLBookmarkCreationOptions, error: *mut Object, ) -> *mut Object
unsafe fn startAccessingSecurityScopedResource(self) -> i8
unsafe fn stopAccessingSecurityScopedResource(self)
unsafe fn NSURLBookmarkFileCreationOptions(self) -> NSURLBookmarkCreationOptions
unsafe fn NSURLBookmarkCreationOptions(self) -> NSURLBookmarkCreationOptions
unsafe fn NSURLBookmarkResolutionOptions(self) -> NSURLBookmarkResolutionOptions
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.