Struct ra_ap_vfs::AnchoredPathBuf
source · pub struct AnchoredPathBuf {
pub anchor: FileId,
pub path: String,
}Expand description
Path relative to a file.
Owned version of AnchoredPath.
Fields§
§anchor: FileIdFile that this path is relative to.
path: StringPath relative to anchor’s containing directory.
Trait Implementations§
source§impl Clone for AnchoredPathBuf
impl Clone for AnchoredPathBuf
source§fn clone(&self) -> AnchoredPathBuf
fn clone(&self) -> AnchoredPathBuf
Returns a copy of the value. Read more
1.0.0 · 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 AnchoredPathBuf
impl Debug for AnchoredPathBuf
source§impl PartialEq for AnchoredPathBuf
impl PartialEq for AnchoredPathBuf
source§fn eq(&self, other: &AnchoredPathBuf) -> bool
fn eq(&self, other: &AnchoredPathBuf) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AnchoredPathBuf
impl StructuralEq for AnchoredPathBuf
impl StructuralPartialEq for AnchoredPathBuf
Auto Trait Implementations§
impl RefUnwindSafe for AnchoredPathBuf
impl Send for AnchoredPathBuf
impl Sync for AnchoredPathBuf
impl Unpin for AnchoredPathBuf
impl UnwindSafe for AnchoredPathBuf
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.