[−][src]Enum url_path::UrlPath
Variants
Fields of Path
External(String)
Methods
impl UrlPath
[src]
pub fn new(path: &str) -> Self
[src]
pub fn is_absolute(&self) -> bool
[src]
pub fn is_external(&self) -> bool
[src]
pub fn last(&self) -> Option<String>
[src]
pub fn parent(&self) -> Option<String>
[src]
pub fn extension(&self) -> Option<String>
[src]
return the extension (ie: html, md, txt ) of the path if there is
pub fn is_extension(&self, ext: &str) -> bool
[src]
returns true if the extension of this path matched the argument extension ext
pub fn normalize(&self) -> String
[src]
return the constructed file
Auto Trait Implementations
impl RefUnwindSafe for UrlPath
impl Send for UrlPath
impl Sync for UrlPath
impl Unpin for UrlPath
impl UnwindSafe for UrlPath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,