pub struct UnitRef {
pub unit: String,
pub file: String,
pub variant: String,
}Expand description
Which piece of a project an analysis is about.
Fields§
§unit: StringThe translation unit or crate, as the build system names it.
file: StringThe file being analyzed within it.
A header analyzed from two translation units is two analyses of one file, which is why the unit is part of the identity and the file alone is not.
variant: StringThe build variant this analysis belongs to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitRef
impl<'de> Deserialize<'de> for UnitRef
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
impl Eq for UnitRef
Source§impl Ord for UnitRef
impl Ord for UnitRef
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
Source§impl PartialOrd for UnitRef
impl PartialOrd for UnitRef
impl StructuralPartialEq for UnitRef
Auto Trait Implementations§
impl Freeze for UnitRef
impl RefUnwindSafe for UnitRef
impl Send for UnitRef
impl Sync for UnitRef
impl Unpin for UnitRef
impl UnsafeUnpin for UnitRef
impl UnwindSafe for UnitRef
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