pub struct GtModulePath(/* private fields */);Expand description
Module path relative to the src directory.
Implementations§
Source§impl GtModulePath
impl GtModulePath
pub fn as_src_relative_path(self) -> GtSrcRelativePath
Sourcepub fn to_pkg_src_relative_path(
&self,
ext: &'static str,
) -> GtPkgSrcRelativePath
pub fn to_pkg_src_relative_path( &self, ext: &'static str, ) -> GtPkgSrcRelativePath
Transforms the src relative path into a package source relative path. It helps targets generating the correct path for the package source.
Trait Implementations§
Source§impl Clone for GtModulePath
impl Clone for GtModulePath
Source§fn clone(&self) -> GtModulePath
fn clone(&self) -> GtModulePath
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GtModulePath
impl Debug for GtModulePath
Source§impl<'de> Deserialize<'de> for GtModulePath
impl<'de> Deserialize<'de> for GtModulePath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for GtModulePath
impl From<&str> for GtModulePath
Source§impl From<GtModulePath> for GtSrcRelativePath
impl From<GtModulePath> for GtSrcRelativePath
Source§fn from(path: GtModulePath) -> Self
fn from(path: GtModulePath) -> Self
Converts to this type from the input type.
Source§impl GtRelativePath for GtModulePath
impl GtRelativePath for GtModulePath
fn new(path: RelativePathBuf) -> Self
fn relative_path(&self) -> &RelativePathBuf
fn as_str(&self) -> &str
fn with_extension<Str: AsRef<str>>(&self, ext: Str) -> Selfwhere
Self: Sized,
fn join_path(&self, path: &RelativePathBuf) -> Selfwhere
Self: Sized,
fn parent(&self) -> Option<Self>where
Self: Sized,
fn parents(&self) -> Successors<Self, fn(&Self) -> Option<Self>>
Source§impl Hash for GtModulePath
impl Hash for GtModulePath
Source§impl PartialEq for GtModulePath
impl PartialEq for GtModulePath
Source§impl Serialize for GtModulePath
impl Serialize for GtModulePath
impl Eq for GtModulePath
impl StructuralPartialEq for GtModulePath
Auto Trait Implementations§
impl Freeze for GtModulePath
impl RefUnwindSafe for GtModulePath
impl Send for GtModulePath
impl Sync for GtModulePath
impl Unpin for GtModulePath
impl UnwindSafe for GtModulePath
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