pub struct PathStr(/* private fields */);Implementations§
Source§impl PathStr
impl PathStr
pub fn into<T: FromPathStr>(self: Arc<Self>) -> T
pub fn as_str(&self) -> &str
pub fn as_path(&self) -> &Path
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn deserialize<'de, D: Deserializer<'de>>( de: D, ) -> Result<Arc<PathStr>, D::Error>
pub fn serialize<S: Serializer>( v: &Arc<PathStr>, s: S, ) -> Result<S::Ok, S::Error>
Trait Implementations§
Source§impl PartialOrd for PathStr
impl PartialOrd for PathStr
impl Eq for PathStr
impl StructuralPartialEq for PathStr
Auto Trait Implementations§
impl Freeze for PathStr
impl RefUnwindSafe for PathStr
impl Send for PathStr
impl !Sized for PathStr
impl Sync for PathStr
impl Unpin for PathStr
impl UnwindSafe for PathStr
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> 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.