Struct cobalt_core::SourcePath
source · #[non_exhaustive]pub struct SourcePath {
pub abs_path: PathBuf,
pub rel_path: RelativePathBuf,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.abs_path: PathBuf
§rel_path: RelativePathBuf
Implementations§
Trait Implementations§
source§impl Clone for SourcePath
impl Clone for SourcePath
source§fn clone(&self) -> SourcePath
fn clone(&self) -> SourcePath
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 SourcePath
impl Debug for SourcePath
source§impl<'de> Deserialize<'de> for SourcePath
impl<'de> Deserialize<'de> for SourcePath
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SourcePath
impl Hash for SourcePath
source§impl Ord for SourcePath
impl Ord for SourcePath
source§fn cmp(&self, other: &SourcePath) -> Ordering
fn cmp(&self, other: &SourcePath) -> Ordering
1.21.0 · 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
source§impl PartialEq<SourcePath> for SourcePath
impl PartialEq<SourcePath> for SourcePath
source§fn eq(&self, other: &SourcePath) -> bool
fn eq(&self, other: &SourcePath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SourcePath> for SourcePath
impl PartialOrd<SourcePath> for SourcePath
source§fn partial_cmp(&self, other: &SourcePath) -> Option<Ordering>
fn partial_cmp(&self, other: &SourcePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SourcePath
impl Serialize for SourcePath
impl Eq for SourcePath
impl StructuralEq for SourcePath
impl StructuralPartialEq for SourcePath
Auto Trait Implementations§
impl RefUnwindSafe for SourcePath
impl Send for SourcePath
impl Sync for SourcePath
impl Unpin for SourcePath
impl UnwindSafe for SourcePath
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> 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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.