pub struct PointStyle {
pub size: f32,
pub color: PointColor,
}Expand description
Point rendering style.
Fields§
§size: f32Point diameter in logical pixels.
color: PointColorPoint color source.
Implementations§
Source§impl PointStyle
impl PointStyle
Sourcepub fn try_new(size: f32, color: PointColor) -> VizResult<Self>
pub fn try_new(size: f32, color: PointColor) -> VizResult<Self>
Creates a validated point style.
Trait Implementations§
Source§impl Clone for PointStyle
impl Clone for PointStyle
Source§fn clone(&self) -> PointStyle
fn clone(&self) -> PointStyle
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 PointStyle
impl Debug for PointStyle
Source§impl Default for PointStyle
impl Default for PointStyle
Source§impl<'de> Deserialize<'de> for PointStyle
impl<'de> Deserialize<'de> for PointStyle
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 PointStyle
impl PartialEq for PointStyle
Source§fn eq(&self, other: &PointStyle) -> bool
fn eq(&self, other: &PointStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PointStyle
impl Serialize for PointStyle
impl StructuralPartialEq for PointStyle
Auto Trait Implementations§
impl Freeze for PointStyle
impl RefUnwindSafe for PointStyle
impl Send for PointStyle
impl Sync for PointStyle
impl Unpin for PointStyle
impl UnsafeUnpin for PointStyle
impl UnwindSafe for PointStyle
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