pub struct LayoutResult {
pub node_positions: Vec<(String, (f64, f64))>,
pub edge_geometries: Vec<(String, HyperedgeGeometry)>,
pub bounding_box: (f64, f64, f64, f64),
}Available on crate feature
layout only.Expand description
The result of a layout computation: insertion-ordered node positions and per-hyperedge geometry, plus the overall bounding box (min_x, min_y, max_x, max_y).
Fields§
§node_positions: Vec<(String, (f64, f64))>§edge_geometries: Vec<(String, HyperedgeGeometry)>§bounding_box: (f64, f64, f64, f64)Trait Implementations§
Source§impl Clone for LayoutResult
impl Clone for LayoutResult
Source§impl Debug for LayoutResult
impl Debug for LayoutResult
Source§impl<'de> Deserialize<'de> for LayoutResult
impl<'de> Deserialize<'de> for LayoutResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutResult
impl PartialEq for LayoutResult
Source§impl Serialize for LayoutResult
impl Serialize for LayoutResult
impl StructuralPartialEq for LayoutResult
Auto Trait Implementations§
impl Forget for LayoutResult
impl Freeze for LayoutResultwhere
*const u8 is !null: Freeze,
PhantomData<(String, (f64, f64))>: Freeze,
PhantomData<(String, HyperedgeGeometry)>: Freeze,
impl Move for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResultwhere
RawVecInner: Send,
impl Sync for LayoutResultwhere
RawVecInner: Sync,
impl Unpin for LayoutResult
impl UnsafeUnpin for LayoutResultwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, (f64, f64))>: UnsafeUnpin,
PhantomData<(String, HyperedgeGeometry)>: UnsafeUnpin,
impl UnwindSafe for LayoutResultwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.