pub struct Uri { /* private fields */ }
Implementations§
Source§impl Uri
impl Uri
pub fn parse(text: &str) -> Result<Uri, ParseError<'_, u8>>
pub fn new( schema: Option<Scheme>, hier_path: Option<HierPart>, query: Option<Query>, fragment: Option<Fragment>, ) -> Self
pub fn schema(&self) -> Option<&Scheme>
pub fn host_name(&self) -> Option<&HostName>
pub fn port(&self) -> Option<u16>
pub fn user_info(&self) -> Option<&UserInfo>
pub fn path(&self) -> Option<&Path>
pub fn query(&self) -> Option<&Query>
pub fn fragment(&self) -> Option<&Fragment>
pub fn is_absolute(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Uri
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
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