pub struct ImportPath { /* private fields */ }
Implementations§
Source§impl ImportPath
impl ImportPath
pub fn parse(path: &str) -> Result<ImportPath, Error>
pub fn parse_external_dep(path: &str) -> Result<ImportPath, Error>
pub fn as_str(&self) -> &str
pub fn package(&self) -> &str
pub fn has_domain(&self) -> bool
pub fn join(&self, rel: &str) -> Result<ImportPath, Error>
Trait Implementations§
Source§impl Clone for ImportPath
impl Clone for ImportPath
Source§fn clone(&self) -> ImportPath
fn clone(&self) -> ImportPath
Returns a duplicate 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 ImportPath
impl Debug for ImportPath
Source§impl Display for ImportPath
impl Display for ImportPath
Source§impl Hash for ImportPath
impl Hash for ImportPath
Source§impl Ord for ImportPath
impl Ord for ImportPath
Source§fn cmp(&self, other: &ImportPath) -> Ordering
fn cmp(&self, other: &ImportPath) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImportPath
impl PartialEq for ImportPath
Source§impl PartialOrd for ImportPath
impl PartialOrd for ImportPath
impl Eq for ImportPath
impl StructuralPartialEq for ImportPath
Auto Trait Implementations§
impl Freeze for ImportPath
impl RefUnwindSafe for ImportPath
impl Send for ImportPath
impl Sync for ImportPath
impl Unpin for ImportPath
impl UnwindSafe for ImportPath
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