pub struct CascadeAnalyzer<'a> { /* private fields */ }Expand description
Cascade分析エンジン
CodeGraphV2とTypeFlowGraphV2とSymbolRegistryを使用して、変更の影響を分析し、 必要なCascadeSpecを生成する。
Implementations§
Source§impl<'a> CascadeAnalyzer<'a>
impl<'a> CascadeAnalyzer<'a>
Sourcepub fn new(
graph: &'a CodeGraphV2,
typeflow: &'a TypeFlowGraphV2,
registry: &'a SymbolRegistry,
derive_index: &'a DeriveIndex,
) -> Self
pub fn new( graph: &'a CodeGraphV2, typeflow: &'a TypeFlowGraphV2, registry: &'a SymbolRegistry, derive_index: &'a DeriveIndex, ) -> Self
新しいCascadeAnalyzerを作成
Sourcepub fn cascade_add_derive(
&self,
target: &SymbolPath,
derives: &[String],
strategy: &CascadeStrategy,
) -> Vec<CascadeSpec>
pub fn cascade_add_derive( &self, target: &SymbolPath, derives: &[String], strategy: &CascadeStrategy, ) -> Vec<CascadeSpec>
Auto Trait Implementations§
impl<'a> Freeze for CascadeAnalyzer<'a>
impl<'a> RefUnwindSafe for CascadeAnalyzer<'a>
impl<'a> Send for CascadeAnalyzer<'a>
impl<'a> Sync for CascadeAnalyzer<'a>
impl<'a> Unpin for CascadeAnalyzer<'a>
impl<'a> UnsafeUnpin for CascadeAnalyzer<'a>
impl<'a> UnwindSafe for CascadeAnalyzer<'a>
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> 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