pub struct CompiledFlow<'a> { /* private fields */ }Available on crate feature
build only.Implementations§
Source§impl<'a> CompiledFlow<'a>
impl<'a> CompiledFlow<'a>
Sourcepub fn dfir_for(
&self,
location: &impl Location<'a>,
) -> Result<&DfirGraph, &PartitionError>
pub fn dfir_for( &self, location: &impl Location<'a>, ) -> Result<&DfirGraph, &PartitionError>
Returns the DFIR graph for the given location.
Ok(&partitioned_graph)if partitioning succeeded.Err(&PartitionError)if partitioning failed. The error still exposes the (renderable) flat graph viaPartitionError::flat_graphand the reason viaPartitionError::diagnostic, so the graph can be visualized to diagnose the failure — e.g.ⓘlet mermaid = match compiled.dfir_for(&process) { Ok(graph) => graph.to_mermaid(&Default::default()), Err(err) => err.flat_graph.mermaid_string_flat(), };
Sourcepub fn all_dfir(
&self,
) -> &SecondaryMap<LocationKey, Result<DfirGraph, PartitionError>>
pub fn all_dfir( &self, ) -> &SecondaryMap<LocationKey, Result<DfirGraph, PartitionError>>
Returns the DFIR graph (or PartitionError) for every location.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompiledFlow<'a>
impl<'a> !Send for CompiledFlow<'a>
impl<'a> !Sync for CompiledFlow<'a>
impl<'a> !UnwindSafe for CompiledFlow<'a>
impl<'a> Freeze for CompiledFlow<'a>
impl<'a> Unpin for CompiledFlow<'a>
impl<'a> UnsafeUnpin for CompiledFlow<'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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.