pub struct PatternDiff {
pub pattern: String,
pub instances_a: usize,
pub instances_b: usize,
pub variations: Vec<PatternVariation>,
}Expand description
Pattern diff — how design patterns differ.
Fields§
§pattern: StringPattern name.
instances_a: usizeInstances in A.
instances_b: usizeInstances in B.
variations: Vec<PatternVariation>Notable variations between A and B.
Trait Implementations§
Source§impl Clone for PatternDiff
impl Clone for PatternDiff
Source§fn clone(&self) -> PatternDiff
fn clone(&self) -> PatternDiff
Returns a duplicate 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 PatternDiff
impl Debug for PatternDiff
Source§impl<'de> Deserialize<'de> for PatternDiff
impl<'de> Deserialize<'de> for PatternDiff
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
Auto Trait Implementations§
impl Freeze for PatternDiff
impl RefUnwindSafe for PatternDiff
impl Send for PatternDiff
impl Sync for PatternDiff
impl Unpin for PatternDiff
impl UnsafeUnpin for PatternDiff
impl UnwindSafe for PatternDiff
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