pub enum ContextRole {
Source,
Target,
Reference,
Comparison,
}Expand description
The role a codebase plays within a workspace.
Roles are used to distinguish the intent behind each loaded codebase.
For example, in a C++ to Rust migration the legacy C++ graph is Source
and the new Rust graph is Target.
Variants§
Source
The original codebase being migrated from or analysed.
Target
The destination codebase being migrated to or built.
Reference
An auxiliary codebase used for reference (e.g., a library API).
Comparison
A codebase loaded solely for side-by-side comparison.
Implementations§
Trait Implementations§
Source§impl Clone for ContextRole
impl Clone for ContextRole
Source§fn clone(&self) -> ContextRole
fn clone(&self) -> ContextRole
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 ContextRole
impl Debug for ContextRole
Source§impl Display for ContextRole
impl Display for ContextRole
Source§impl PartialEq for ContextRole
impl PartialEq for ContextRole
impl Eq for ContextRole
impl StructuralPartialEq for ContextRole
Auto Trait Implementations§
impl Freeze for ContextRole
impl RefUnwindSafe for ContextRole
impl Send for ContextRole
impl Sync for ContextRole
impl Unpin for ContextRole
impl UnsafeUnpin for ContextRole
impl UnwindSafe for ContextRole
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.