pub struct LayoutFactsQueryResult {
pub revision: u64,
pub rendering: RenderingQueryResult,
pub visible_edge_positions: Vec<LayoutEdgePosition>,
pub connection_target_candidates: Vec<ConnectionTargetCandidate>,
}Expand description
Store-level layout facts derived from the graph, view state, and reported measurements.
Fields§
§revision: u64§rendering: RenderingQueryResult§visible_edge_positions: Vec<LayoutEdgePosition>§connection_target_candidates: Vec<ConnectionTargetCandidate>Implementations§
Source§impl LayoutFactsQueryResult
impl LayoutFactsQueryResult
pub fn new( revision: u64, rendering: RenderingQueryResult, visible_edge_positions: Vec<LayoutEdgePosition>, connection_target_candidates: Vec<ConnectionTargetCandidate>, ) -> Self
pub fn visible_edge_position(&self, edge: EdgeId) -> Option<EdgePosition>
Trait Implementations§
Source§impl Clone for LayoutFactsQueryResult
impl Clone for LayoutFactsQueryResult
Source§fn clone(&self) -> LayoutFactsQueryResult
fn clone(&self) -> LayoutFactsQueryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LayoutFactsQueryResult
impl Debug for LayoutFactsQueryResult
Source§impl PartialEq for LayoutFactsQueryResult
impl PartialEq for LayoutFactsQueryResult
Source§fn eq(&self, other: &LayoutFactsQueryResult) -> bool
fn eq(&self, other: &LayoutFactsQueryResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LayoutFactsQueryResult
Auto Trait Implementations§
impl Freeze for LayoutFactsQueryResult
impl RefUnwindSafe for LayoutFactsQueryResult
impl Send for LayoutFactsQueryResult
impl Sync for LayoutFactsQueryResult
impl Unpin for LayoutFactsQueryResult
impl UnsafeUnpin for LayoutFactsQueryResult
impl UnwindSafe for LayoutFactsQueryResult
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