struct DirPath(String);Tuple Fields§
§0: StringImplementations§
Source§impl DirPath
impl DirPath
fn assert_invariant(&self)
fn new(repr: String) -> DirPath
fn empty() -> DirPath
fn push(&mut self, name: &str)
fn parent(&self) -> Option<&str>
Sourcefn join_attr(&self, attr: &str, relative_to_parent: bool) -> String
fn join_attr(&self, attr: &str, relative_to_parent: bool) -> String
So this is the case which doesn’t really work I think if we try to be 100% platform agnostic:
ⓘ
mod a {
#[path="C://sad/face"]
mod b { mod c; }
}Here, we need to join logical dir path to a string path from an
attribute. Ideally, we should somehow losslessly communicate the whole
construction to FileLoader.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirPath
impl RefUnwindSafe for DirPath
impl Send for DirPath
impl Sync for DirPath
impl Unpin for DirPath
impl UnsafeUnpin for DirPath
impl UnwindSafe for DirPath
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> ⓘ
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