pub struct DiffRenderer { /* private fields */ }Expand description
Renders graph and linear views with range annotations.
Implementations§
Source§impl DiffRenderer
impl DiffRenderer
Sourcepub fn add_range_annotation(&self, annotation: SimilarityRangeAnnotation)
pub fn add_range_annotation(&self, annotation: SimilarityRangeAnnotation)
Adds a range annotation to later renders.
NOTE: Empty ranges are ignored.
Sourcepub fn render_function(
&self,
context: &SimilarityRenderContext,
function: &Function,
)
pub fn render_function( &self, context: &SimilarityRenderContext, function: &Function, )
Renders the graph and linear views for a function.
Sourcepub fn render_function_for_entity(
&self,
context: &SimilarityRenderContext,
function: &Function,
entity: SimilarityEntityRef,
)
pub fn render_function_for_entity( &self, context: &SimilarityRenderContext, function: &Function, entity: SimilarityEntityRef, )
Renders graph and linear views for a function and session entity.
Sourcepub fn render_flow_graph(
&self,
context: &SimilarityRenderContext,
group: &str,
graph: &FlowGraph,
)
pub fn render_flow_graph( &self, context: &SimilarityRenderContext, group: &str, graph: &FlowGraph, )
Renders an annotated flow graph.
Sourcepub fn render_flow_graph_for_entity(
&self,
context: &SimilarityRenderContext,
group: &str,
graph: &FlowGraph,
entity: SimilarityEntityRef,
)
pub fn render_flow_graph_for_entity( &self, context: &SimilarityRenderContext, group: &str, graph: &FlowGraph, entity: SimilarityEntityRef, )
Renders an annotated flow graph for a session entity.
Sourcepub fn render_linear_view(
&self,
context: &SimilarityRenderContext,
group: &str,
data: &BinaryView,
linear_view: &LinearViewObject,
)
pub fn render_linear_view( &self, context: &SimilarityRenderContext, group: &str, data: &BinaryView, linear_view: &LinearViewObject, )
Renders an annotated linear view.
Sourcepub fn render_linear_view_for_entity(
&self,
context: &SimilarityRenderContext,
group: &str,
data: &BinaryView,
linear_view: &LinearViewObject,
entity: SimilarityEntityRef,
)
pub fn render_linear_view_for_entity( &self, context: &SimilarityRenderContext, group: &str, data: &BinaryView, linear_view: &LinearViewObject, entity: SimilarityEntityRef, )
Renders an annotated linear view for a session entity.
Trait Implementations§
Source§impl ToOwned for DiffRenderer
impl ToOwned for DiffRenderer
Source§type Owned = Ref<DiffRenderer>
type Owned = Ref<DiffRenderer>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for DiffRenderer
impl RefUnwindSafe for DiffRenderer
impl !Send for DiffRenderer
impl !Sync for DiffRenderer
impl Unpin for DiffRenderer
impl UnsafeUnpin for DiffRenderer
impl UnwindSafe for DiffRenderer
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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more