pub struct Url(/* private fields */);Expand description
An Objective-C URL object.
C++ equivalent: NS::URL
Implementations§
Source§impl Url
impl Url
Sourcepub fn file_url_with_path(path: &String) -> Option<Self>
pub fn file_url_with_path(path: &String) -> Option<Self>
Create a file URL with the specified path.
C++ equivalent: static URL* fileURLWithPath(const class String* pPath)
Sourcepub fn init_with_string(&self, string: &String) -> Option<Self>
pub fn init_with_string(&self, string: &String) -> Option<Self>
Initialize with a string.
C++ equivalent: URL* init(const class String* pString)
Sourcepub fn init_file_url_with_path(&self, path: &String) -> Option<Self>
pub fn init_file_url_with_path(&self, path: &String) -> Option<Self>
Initialize as a file URL with the specified path.
C++ equivalent: URL* initFileURLWithPath(const class String* pPath)
Sourcepub fn file_system_representation(&self) -> *const c_char
pub fn file_system_representation(&self) -> *const c_char
Get the file system representation.
C++ equivalent: const char* fileSystemRepresentation() const
Trait Implementations§
Source§impl Referencing for Url
impl Referencing for Url
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> UInteger
fn retain_count(&self) -> UInteger
Get the retain count of the object. Read more
impl Send for Url
impl Sync for Url
Auto Trait Implementations§
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