pub struct VendoredPath(/* private fields */);Implementations§
Source§impl VendoredPath
impl VendoredPath
pub fn new(path: &(impl AsRef<Utf8Path> + ?Sized)) -> &Self
pub fn file_name(&self) -> Option<&str>
pub fn to_path_buf(&self) -> VendoredPathBuf
pub fn as_str(&self) -> &str
pub fn as_utf8_path(&self) -> &Utf8Path
pub fn as_std_path(&self) -> &Path
pub fn components(&self) -> Utf8Components<'_> ⓘ
pub fn extension(&self) -> Option<&str>
pub fn with_pyi_extension(&self) -> VendoredPathBuf
pub fn join(&self, other: impl AsRef<VendoredPath>) -> VendoredPathBuf
pub fn ends_with(&self, suffix: impl AsRef<VendoredPath>) -> bool
pub fn parent(&self) -> Option<&Self>
pub fn file_stem(&self) -> Option<&str>
pub fn strip_prefix( &self, prefix: impl AsRef<VendoredPath>, ) -> Result<&Self, StripPrefixError>
Trait Implementations§
Source§impl AsRef<Path> for VendoredPath
impl AsRef<Path> for VendoredPath
Source§impl AsRef<Utf8Path> for VendoredPath
impl AsRef<Utf8Path> for VendoredPath
Source§impl AsRef<VendoredPath> for VendoredPathBuf
impl AsRef<VendoredPath> for VendoredPathBuf
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<VendoredPath> for VendoredPath
impl AsRef<VendoredPath> for VendoredPath
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<VendoredPath> for Utf8Path
impl AsRef<VendoredPath> for Utf8Path
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<VendoredPath> for Utf8PathBuf
impl AsRef<VendoredPath> for Utf8PathBuf
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<VendoredPath> for str
impl AsRef<VendoredPath> for str
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<VendoredPath> for String
impl AsRef<VendoredPath> for String
Source§fn as_ref(&self) -> &VendoredPath
fn as_ref(&self) -> &VendoredPath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<VendoredPath> for VendoredPathBuf
impl Borrow<VendoredPath> for VendoredPathBuf
Source§fn borrow(&self) -> &VendoredPath
fn borrow(&self) -> &VendoredPath
Immutably borrows from an owned value. Read more
Source§impl Clone for Box<VendoredPath>
impl Clone for Box<VendoredPath>
Source§impl Debug for VendoredPath
impl Debug for VendoredPath
Source§impl Display for VendoredPath
impl Display for VendoredPath
impl Eq for VendoredPath
Source§impl From<&VendoredPath> for FilePath
impl From<&VendoredPath> for FilePath
Source§fn from(value: &VendoredPath) -> Self
fn from(value: &VendoredPath) -> Self
Converts to this type from the input type.
Source§impl From<&VendoredPath> for Box<VendoredPath>
impl From<&VendoredPath> for Box<VendoredPath>
Source§fn from(path: &VendoredPath) -> Self
fn from(path: &VendoredPath) -> Self
Converts to this type from the input type.
Source§impl From<VendoredPathBuf> for Box<VendoredPath>
impl From<VendoredPathBuf> for Box<VendoredPath>
Source§fn from(path: VendoredPathBuf) -> Self
fn from(path: VendoredPathBuf) -> Self
Converts to this type from the input type.
Source§impl GetSize for Box<VendoredPath>
impl GetSize for Box<VendoredPath>
Source§fn get_heap_size_with_tracker<T: GetSizeTracker>(
&self,
tracker: T,
) -> (usize, T)
fn get_heap_size_with_tracker<T: GetSizeTracker>( &self, tracker: T, ) -> (usize, T)
Determines how many bytes this object occupies inside the heap while using a
tracker. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker. Read moreSource§impl Hash for VendoredPath
impl Hash for VendoredPath
Source§impl PartialEq for VendoredPath
impl PartialEq for VendoredPath
Source§impl PartialEq<FilePath> for VendoredPath
impl PartialEq<FilePath> for VendoredPath
Source§impl PartialEq<VendoredPath> for FilePath
impl PartialEq<VendoredPath> for FilePath
impl StructuralPartialEq for VendoredPath
Source§impl ToOwned for VendoredPath
impl ToOwned for VendoredPath
Source§type Owned = VendoredPathBuf
type Owned = VendoredPathBuf
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> VendoredPathBuf
fn to_owned(&self) -> VendoredPathBuf
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl !Sized for VendoredPath
impl Freeze for VendoredPath
impl RefUnwindSafe for VendoredPath
impl Send for VendoredPath
impl Sync for VendoredPath
impl Unpin for VendoredPath
impl UnsafeUnpin for VendoredPath
impl UnwindSafe for VendoredPath
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.