pub(crate) struct UrlPath {
source_url: Url,
paths: Vec<String>,
}Fields§
§source_url: Url§paths: Vec<String>Implementations§
Source§impl UrlPath
impl UrlPath
pub fn is_empty(&self) -> bool
Sourcepub fn pop(self) -> Self
pub fn pop(self) -> Self
Removes the final component (if any). Result will never be a dada file.
Sourcepub fn is_dada_file(&self) -> bool
pub fn is_dada_file(&self) -> bool
True if final component ends in .dada
Sourcepub fn final_module_name(&self) -> &str
pub fn final_module_name(&self) -> &str
True if final component ends in .dada
Sourcepub fn make_directory(self) -> Self
pub fn make_directory(self) -> Self
Sourcepub fn make_dada_file(self) -> Self
pub fn make_dada_file(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UrlPath
impl RefUnwindSafe for UrlPath
impl Send for UrlPath
impl Sync for UrlPath
impl Unpin for UrlPath
impl UnsafeUnpin for UrlPath
impl UnwindSafe for UrlPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more