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: PathBufrel_path: RelativePathBufImplementations
Trait Implementations
sourceimpl Clone for SourcePath
impl Clone for SourcePath
sourcefn clone(&self) -> SourcePath
fn clone(&self) -> SourcePath
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SourcePath
impl Debug for SourcePath
sourceimpl<'de> Deserialize<'de> for SourcePath
impl<'de> Deserialize<'de> for SourcePath
sourcefn 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
sourceimpl Hash for SourcePath
impl Hash for SourcePath
sourceimpl Ord for SourcePath
impl Ord for SourcePath
sourceimpl PartialEq<SourcePath> for SourcePath
impl PartialEq<SourcePath> for SourcePath
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SourcePath) -> bool
fn ne(&self, other: &SourcePath) -> bool
This method tests for !=.
sourceimpl PartialOrd<SourcePath> for SourcePath
impl PartialOrd<SourcePath> for SourcePath
sourcefn partial_cmp(&self, other: &SourcePath) -> Option<Ordering>
fn partial_cmp(&self, other: &SourcePath) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.