pub struct CompositionSuggestion {
pub index: usize,
pub severity: CompositionSuggestionSeverity,
pub kind: CompositionSuggestionKind,
pub source_machine: usize,
pub target_machine: usize,
pub exact_relation_indices: Vec<usize>,
pub heuristic_relation_indices: Vec<usize>,
pub exact_counts: Vec<CodebaseRelationCount>,
pub heuristic_counts: Vec<HeuristicRelationCount>,
}Fields§
§index: usize§severity: CompositionSuggestionSeverity§kind: CompositionSuggestionKind§source_machine: usize§target_machine: usize§exact_relation_indices: Vec<usize>§heuristic_relation_indices: Vec<usize>§exact_counts: Vec<CodebaseRelationCount>§heuristic_counts: Vec<HeuristicRelationCount>Implementations§
Source§impl CompositionSuggestion
impl CompositionSuggestion
pub fn source_machine<'a>( &self, doc: &'a CodebaseDoc, ) -> Option<&'a CodebaseMachine>
pub fn target_machine<'a>( &self, doc: &'a CodebaseDoc, ) -> Option<&'a CodebaseMachine>
pub fn summary_label(&self, doc: &CodebaseDoc) -> String
pub fn counts_label(&self) -> String
pub const fn help_text(&self) -> &'static str
pub const fn why_text(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CompositionSuggestion
impl Clone for CompositionSuggestion
Source§fn clone(&self) -> CompositionSuggestion
fn clone(&self) -> CompositionSuggestion
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 CompositionSuggestion
impl Debug for CompositionSuggestion
Source§impl PartialEq for CompositionSuggestion
impl PartialEq for CompositionSuggestion
impl Eq for CompositionSuggestion
impl StructuralPartialEq for CompositionSuggestion
Auto Trait Implementations§
impl Freeze for CompositionSuggestion
impl RefUnwindSafe for CompositionSuggestion
impl Send for CompositionSuggestion
impl Sync for CompositionSuggestion
impl Unpin for CompositionSuggestion
impl UnsafeUnpin for CompositionSuggestion
impl UnwindSafe for CompositionSuggestion
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more