pub struct VendoredPathBuf(/* private fields */);Implementations§
Source§impl VendoredPathBuf
impl VendoredPathBuf
pub fn new() -> Self
pub fn as_path(&self) -> &VendoredPath
pub fn push(&mut self, component: impl AsRef<VendoredPath>)
Methods from Deref<Target = VendoredPath>§
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<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 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 VendoredPathBuf
impl Clone for VendoredPathBuf
Source§fn clone(&self) -> VendoredPathBuf
fn clone(&self) -> VendoredPathBuf
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VendoredPathBuf
impl Debug for VendoredPathBuf
Source§impl Default for VendoredPathBuf
impl Default for VendoredPathBuf
Source§impl Deref for VendoredPathBuf
impl Deref for VendoredPathBuf
Source§impl Display for VendoredPathBuf
impl Display for VendoredPathBuf
impl Eq for VendoredPathBuf
Source§impl From<&str> for VendoredPathBuf
impl From<&str> for VendoredPathBuf
Source§impl From<VendoredPathBuf> for FilePath
impl From<VendoredPathBuf> for FilePath
Source§fn from(value: VendoredPathBuf) -> Self
fn from(value: VendoredPathBuf) -> 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 VendoredPathBuf
impl GetSize for VendoredPathBuf
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 VendoredPathBuf
impl Hash for VendoredPathBuf
Source§impl PartialEq for VendoredPathBuf
impl PartialEq for VendoredPathBuf
Source§impl PartialEq<FilePath> for VendoredPathBuf
impl PartialEq<FilePath> for VendoredPathBuf
Source§impl PartialEq<VendoredPathBuf> for FilePath
impl PartialEq<VendoredPathBuf> for FilePath
impl StructuralPartialEq for VendoredPathBuf
Auto Trait Implementations§
impl Freeze for VendoredPathBuf
impl RefUnwindSafe for VendoredPathBuf
impl Send for VendoredPathBuf
impl Sync for VendoredPathBuf
impl Unpin for VendoredPathBuf
impl UnsafeUnpin for VendoredPathBuf
impl UnwindSafe for VendoredPathBuf
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> HashEqLike<&T> for T
impl<T> HashEqLike<&T> for T
Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoDiagnosticMessage for Twhere
T: Display,
impl<T> IntoDiagnosticMessage for Twhere
T: Display,
fn into_diagnostic_message(self) -> DiagnosticMessage
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCharString for Twhere
T: Display,
impl<T> ToCharString for Twhere
T: Display,
Source§fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
fn try_to_char_string(&self) -> Result<CharString, ToCharStringError>
Attempts to convert the value to a
CharString. Read moreSource§fn to_char_string(&self) -> CharString
fn to_char_string(&self) -> CharString
Converts the value to a
CharString. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more