pub struct PackagePath(/* private fields */);Expand description
A /-separated path to a file or directory inside a plugin package,
relative to the plugin root.
Constructed only by the loader — from spec-fixed locations and from names
returned by directory listings — so a PackagePath handed to an IO
implementation is always well-formed and root-relative.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for PackagePath
impl AsRef<str> for PackagePath
Source§impl Clone for PackagePath
impl Clone for PackagePath
Source§impl Debug for PackagePath
impl Debug for PackagePath
Source§impl Display for PackagePath
impl Display for PackagePath
impl Eq for PackagePath
Source§impl Hash for PackagePath
impl Hash for PackagePath
Source§impl Ord for PackagePath
impl Ord for PackagePath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PackagePath
impl PartialEq for PackagePath
Source§impl PartialOrd for PackagePath
impl PartialOrd for PackagePath
impl StructuralPartialEq for PackagePath
Auto Trait Implementations§
impl Freeze for PackagePath
impl RefUnwindSafe for PackagePath
impl Send for PackagePath
impl Sync for PackagePath
impl Unpin for PackagePath
impl UnsafeUnpin for PackagePath
impl UnwindSafe for PackagePath
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.