pub struct PathReference { /* private fields */ }
Implementations§
Source§impl PathReference
impl PathReference
pub fn new( namespace: String, path: String, importable_name: ImportableName, ) -> PathReference
pub fn path_reference_hash(&self) -> PathReferenceHash
pub fn namespace(&self) -> &str
pub fn path(&self) -> &str
pub fn importable_name(&self) -> &ImportableName
pub fn canonicalized_absolute_path( &self, namespace_resolver: &dyn PathReferenceNamespaceResolver, source_file_path: &Path, ) -> Result<PathReference, DataSetErrorWithBacktrace>
pub fn simplify( self, namespace_resolver: &dyn PathReferenceNamespaceResolver, ) -> CanonicalPathReference
Trait Implementations§
Source§impl Clone for PathReference
impl Clone for PathReference
Source§fn clone(&self) -> PathReference
fn clone(&self) -> PathReference
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 PathReference
impl Debug for PathReference
Source§impl Display for PathReference
impl Display for PathReference
Source§impl From<&Path> for PathReference
impl From<&Path> for PathReference
Source§fn from(path: &Path) -> PathReference
fn from(path: &Path) -> PathReference
Converts to this type from the input type.
Source§impl From<&PathBuf> for PathReference
impl From<&PathBuf> for PathReference
Source§fn from(path: &PathBuf) -> PathReference
fn from(path: &PathBuf) -> PathReference
Converts to this type from the input type.
Source§impl From<&String> for PathReference
impl From<&String> for PathReference
Source§fn from(path: &String) -> PathReference
fn from(path: &String) -> PathReference
Converts to this type from the input type.
Source§impl From<&str> for PathReference
impl From<&str> for PathReference
Source§fn from(s: &str) -> PathReference
fn from(s: &str) -> PathReference
Converts to this type from the input type.
Source§impl From<PathBuf> for PathReference
impl From<PathBuf> for PathReference
Source§fn from(path: PathBuf) -> PathReference
fn from(path: PathBuf) -> PathReference
Converts to this type from the input type.
Source§impl From<String> for PathReference
impl From<String> for PathReference
Source§fn from(path: String) -> PathReference
fn from(path: String) -> PathReference
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathReference
impl RefUnwindSafe for PathReference
impl Send for PathReference
impl Sync for PathReference
impl Unpin for PathReference
impl UnwindSafe for PathReference
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