Skip to main content

VendoredPath

Struct VendoredPath 

Source
pub struct VendoredPath(/* private fields */);

Implementations§

Source§

impl VendoredPath

Source

pub fn new(path: &(impl AsRef<Utf8Path> + ?Sized)) -> &Self

Source

pub fn file_name(&self) -> Option<&str>

Source

pub fn to_path_buf(&self) -> VendoredPathBuf

Source

pub fn as_str(&self) -> &str

Source

pub fn as_utf8_path(&self) -> &Utf8Path

Source

pub fn as_std_path(&self) -> &Path

Source

pub fn components(&self) -> Utf8Components<'_>

Source

pub fn extension(&self) -> Option<&str>

Source

pub fn with_pyi_extension(&self) -> VendoredPathBuf

Source

pub fn join(&self, other: impl AsRef<VendoredPath>) -> VendoredPathBuf

Source

pub fn ends_with(&self, suffix: impl AsRef<VendoredPath>) -> bool

Source

pub fn parent(&self) -> Option<&Self>

Source

pub fn file_stem(&self) -> Option<&str>

Source

pub fn strip_prefix( &self, prefix: impl AsRef<VendoredPath>, ) -> Result<&Self, StripPrefixError>

Trait Implementations§

Source§

impl AsRef<Path> for VendoredPath

Source§

fn as_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Utf8Path> for VendoredPath

Source§

fn as_ref(&self) -> &Utf8Path

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for VendoredPathBuf

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for VendoredPath

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for Utf8Path

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for Utf8PathBuf

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for str

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<VendoredPath> for String

Source§

fn as_ref(&self) -> &VendoredPath

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<VendoredPath> for VendoredPathBuf

Source§

fn borrow(&self) -> &VendoredPath

Immutably borrows from an owned value. Read more
Source§

impl Clone for Box<VendoredPath>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VendoredPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VendoredPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for VendoredPath

Source§

impl From<&VendoredPath> for FilePath

Source§

fn from(value: &VendoredPath) -> Self

Converts to this type from the input type.
Source§

impl From<&VendoredPath> for Box<VendoredPath>

Source§

fn from(path: &VendoredPath) -> Self

Converts to this type from the input type.
Source§

impl From<VendoredPathBuf> for Box<VendoredPath>

Source§

fn from(path: VendoredPathBuf) -> Self

Converts to this type from the input type.
Source§

impl GetSize for Box<VendoredPath>

Source§

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 more
Source§

fn get_stack_size() -> usize

Determines how may bytes this object occupies inside the stack. Read more
Source§

fn get_heap_size(&self) -> usize

Determines how many bytes this object occupies inside the heap. Read more
Source§

fn get_size(&self) -> usize

Determines the total size of the object. Read more
Source§

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 more
Source§

impl Hash for VendoredPath

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for VendoredPath

Source§

fn eq(&self, other: &VendoredPath) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePath> for VendoredPath

Source§

fn eq(&self, other: &FilePath) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<VendoredPath> for FilePath

Source§

fn eq(&self, other: &VendoredPath) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for VendoredPath

Source§

impl ToOwned for VendoredPath

Source§

type Owned = VendoredPathBuf

The resulting type after obtaining ownership.
Source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<'a> TryFrom<&'a Path> for &'a VendoredPath

Source§

type Error = FromPathError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Path) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more