pub unsafe fn load_url(&self, url: &str) {
        let url = NSString::alloc(nil).init_str(url);
        let url = NSURL::alloc(nil).initWithString_(url);
        let req = NSURLRequest::alloc(nil).initWithURL_(url);
        self.webview.loadRequest_(req);
    }
/// Load an URL onto the WebView.
///
/// # Safety
/// All the FFI functions are unsafe.
Load an URL onto the WebView.
Load an URL onto the WebView .
pub unsafe fn load_url(&self, url: &str) {
        let url = NSString::alloc(nil).init_str(url);
        let url = NSURL::alloc(nil).initWithString_(url);
        let req = NSURLRequest::alloc(nil).initWithURL_(url);
        self.webview.loadRequest_(req);
    }
pub unsafe fn load_url ( & self , url : & str ) { let url = NSString :: alloc ( nil ) . init_str ( url ) ; let url = NSURL :: alloc ( nil ) . initWithString_ ( url ) ; let req = NSURLRequest :: alloc ( nil ) . initWithURL_ ( url ) ; self . webview . loadRequest_ ( req ) ; }
Load an URL onto the WebView.
Load an URL onto the WebView .
&self
url
&str
&self
url
&str
safety
All the FFI functions are unsafe.
All the FFI functions are unsafe .