Enum rustc_span::RealFileName [−][src]
pub enum RealFileName {
Named(PathBuf),
Devirtualized {
local_path: PathBuf,
virtual_name: PathBuf,
},
}Variants
Named(PathBuf)Expand description
For de-virtualized paths (namely paths into libstd that have been mapped to the appropriate spot on the local host’s file system),
Show fields
Implementations
impl RealFileName[src]
impl RealFileName[src]pub fn local_path(&self) -> &Path[src]
pub fn local_path(&self) -> &Path[src]Returns the path suitable for reading from the file system on the local host.
Avoid embedding this in build artifacts; see stable_name() for that.
pub fn into_local_path(self) -> PathBuf[src]
pub fn into_local_path(self) -> PathBuf[src]Returns the path suitable for reading from the file system on the local host.
Avoid embedding this in build artifacts; see stable_name() for that.
pub fn stable_name(&self) -> &Path[src]
pub fn stable_name(&self) -> &Path[src]Returns the path suitable for embedding into build artifacts. Note that
a virtualized path will not correspond to a valid file system path; see
local_path() for something that is more likely to return paths into the
local host file system.
Trait Implementations
impl Clone for RealFileName[src]
impl Clone for RealFileName[src]fn clone(&self) -> RealFileName[src]
fn clone(&self) -> RealFileName[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for RealFileName[src]
impl Debug for RealFileName[src]impl<__D: Decoder> Decodable<__D> for RealFileName[src]
impl<__D: Decoder> Decodable<__D> for RealFileName[src]impl<__E: Encoder> Encodable<__E> for RealFileName[src]
impl<__E: Encoder> Encodable<__E> for RealFileName[src]impl Hash for RealFileName[src]
impl Hash for RealFileName[src]impl<__CTX> HashStable<__CTX> for RealFileName where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for RealFileName where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl Ord for RealFileName[src]
impl Ord for RealFileName[src]impl PartialEq<RealFileName> for RealFileName[src]
impl PartialEq<RealFileName> for RealFileName[src]fn eq(&self, other: &RealFileName) -> bool[src]
fn eq(&self, other: &RealFileName) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &RealFileName) -> bool[src]
fn ne(&self, other: &RealFileName) -> bool[src]This method tests for !=.
impl PartialOrd<RealFileName> for RealFileName[src]
impl PartialOrd<RealFileName> for RealFileName[src]fn partial_cmp(&self, other: &RealFileName) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RealFileName) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for RealFileName[src]
impl StructuralEq for RealFileName[src]
impl StructuralPartialEq for RealFileName[src]
Auto Trait Implementations
impl RefUnwindSafe for RealFileName
impl Send for RealFileName
impl Sync for RealFileName
impl Unpin for RealFileName
impl UnwindSafe for RealFileName
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more