pub enum GraphLayout {
Circular,
Force,
}Expand description
A serde-round-trippable mirror of Layout (which is Copy but neither
Serialize nor Debug, so it cannot live in the GraphState Model directly).
The Msg and the Model carry this; conversions to/from the core Layout
keep the painter and public API speaking the core type.
Variants§
Trait Implementations§
Source§impl Clone for GraphLayout
impl Clone for GraphLayout
Source§fn clone(&self) -> GraphLayout
fn clone(&self) -> GraphLayout
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 moreimpl Copy for GraphLayout
Source§impl Debug for GraphLayout
impl Debug for GraphLayout
Source§impl Default for GraphLayout
impl Default for GraphLayout
Source§fn default() -> GraphLayout
fn default() -> GraphLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GraphLayout
impl<'de> Deserialize<'de> for GraphLayout
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
impl Eq for GraphLayout
Source§impl From<GraphLayout> for Layout
impl From<GraphLayout> for Layout
Source§fn from(l: GraphLayout) -> Self
fn from(l: GraphLayout) -> Self
Converts to this type from the input type.
Source§impl From<Layout> for GraphLayout
impl From<Layout> for GraphLayout
Source§impl PartialEq for GraphLayout
impl PartialEq for GraphLayout
Source§impl Serialize for GraphLayout
impl Serialize for GraphLayout
impl StructuralPartialEq for GraphLayout
Auto Trait Implementations§
impl Freeze for GraphLayout
impl RefUnwindSafe for GraphLayout
impl Send for GraphLayout
impl Sync for GraphLayout
impl Unpin for GraphLayout
impl UnsafeUnpin for GraphLayout
impl UnwindSafe for GraphLayout
Blanket Implementations§
impl<T> Allocation for T
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