pub struct InteractionStyle { /* private fields */ }Expand description
One exact point and connector style owned by an interaction group.
use lichtung_plot::{plots::InteractionStyle, style::{LinePattern, PointShape}};
let style = InteractionStyle::new("Control")?
.point_shape(PointShape::TriangleUp)?
.line_pattern(LinePattern::Dashed)?;
assert_eq!(style.group(), "Control");ⓘ
use lichtung_plot::{plots::InteractionStyle, style::PointShape};
let _ = InteractionStyle::new("Control").unwrap().shape(PointShape::TriangleUp);Implementations§
Source§impl InteractionStyle
impl InteractionStyle
Sourcepub fn new(group: impl Into<String>) -> Result<Self, Error>
pub fn new(group: impl Into<String>) -> Result<Self, Error>
Construct a circle-and-solid style for one exact graphical group label.
The raw selector must be nonempty, already trimmed and control-free. Its bytes, including interior whitespace, are retained for exact lookup.
Sourcepub fn point_shape(self, shape: PointShape) -> Result<Self, Error>
pub fn point_shape(self, shape: PointShape) -> Result<Self, Error>
Select the point shape for this group.
Sourcepub fn line_pattern(self, pattern: LinePattern) -> Result<Self, Error>
pub fn line_pattern(self, pattern: LinePattern) -> Result<Self, Error>
Select the connector pattern for this group.
Sourcepub const fn get_point_shape(&self) -> PointShape
pub const fn get_point_shape(&self) -> PointShape
Configured point shape.
Sourcepub const fn get_line_pattern(&self) -> LinePattern
pub const fn get_line_pattern(&self) -> LinePattern
Configured connector pattern.
Trait Implementations§
Source§impl Clone for InteractionStyle
impl Clone for InteractionStyle
Source§impl Debug for InteractionStyle
impl Debug for InteractionStyle
impl Eq for InteractionStyle
Source§impl PartialEq for InteractionStyle
impl PartialEq for InteractionStyle
impl StructuralPartialEq for InteractionStyle
Auto Trait Implementations§
impl Forget for InteractionStyle
impl Freeze for InteractionStyle
impl Move for InteractionStyle
impl RefUnwindSafe for InteractionStyle
impl Send for InteractionStylewhere
RawVecInner: Send,
impl Sync for InteractionStylewhere
RawVecInner: Sync,
impl Unpin for InteractionStyle
impl UnsafeUnpin for InteractionStyle
impl UnwindSafe for InteractionStylewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar 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§fn to_subset_unchecked(&self) -> SS
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.