Struct kernel::schemes::URL
[−]
[src]
pub struct URL { pub string: String, }
An URL, see wiki
Fields
string |
Methods
impl URL
fn new() -> Self
Create a new empty URL
fn from_str(url_str: &'static str) -> Self
Create an URL from a string literal
fn from_string(url_string: &String) -> Self
Create an URL from String
fn to_string(&self) -> String
Convert to string
fn len(&self) -> usize
Get the length of this URL
fn open(&self) -> Option<Box<Resource>>
Open this URL (returns a resource)
fn scheme(&self) -> &str
Return the scheme of this url
fn reference(&self) -> &str
Get the reference (after the ':') of the url