pub struct SimilarityView {
pub group: String,
pub view_type: SimilarityViewType,
pub graph: Option<Ref<FlowGraph>>,
pub data: Option<Ref<BinaryView>>,
pub linear_view: Option<Ref<LinearViewObject>>,
pub entity: Option<SimilarityEntityRef>,
}Expand description
A graph or linear view used to display a similarity result.
Fields§
§group: StringThe group used to arrange related views.
view_type: SimilarityViewTypeThe kind of view stored in this entry.
graph: Option<Ref<FlowGraph>>The flow graph, when view_type is a graph.
data: Option<Ref<BinaryView>>The binary view backing a linear view.
linear_view: Option<Ref<LinearViewObject>>The linear view object, when view_type is linear.
entity: Option<SimilarityEntityRef>The session entity for this view, if its renderer provided one.
Auto Trait Implementations§
impl Freeze for SimilarityView
impl RefUnwindSafe for SimilarityView
impl !Send for SimilarityView
impl !Sync for SimilarityView
impl Unpin for SimilarityView
impl UnsafeUnpin for SimilarityView
impl UnwindSafe for SimilarityView
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