Struct graphics_style::PointSize
source · [−]pub struct PointSize {
pub value: f32,
}Expand description
Represent the size of a point, default size is 1.0
The shape of the point is always round.
Fields
value: f32Actual value for StyleResolver::point_size
Trait Implementations
sourceimpl AddAssign<&'_ PointSize> for PointStyle
impl AddAssign<&'_ PointSize> for PointStyle
sourcefn add_assign(&mut self, rhs: &PointSize)
fn add_assign(&mut self, rhs: &PointSize)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ PointSize> for StyleContext
impl AddAssign<&'_ PointSize> for StyleContext
sourcefn add_assign(&mut self, rhs: &PointSize)
fn add_assign(&mut self, rhs: &PointSize)
Performs the += operation. Read more
sourceimpl AddAssign<PointSize> for PointStyle
impl AddAssign<PointSize> for PointStyle
sourcefn add_assign(&mut self, rhs: PointSize)
fn add_assign(&mut self, rhs: PointSize)
Performs the += operation. Read more
sourceimpl AddAssign<PointSize> for StyleContext
impl AddAssign<PointSize> for StyleContext
sourcefn add_assign(&mut self, rhs: PointSize)
fn add_assign(&mut self, rhs: PointSize)
Performs the += operation. Read more
sourceimpl<'de> Deserialize<'de> for PointSize
impl<'de> Deserialize<'de> for PointSize
sourcefn 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
sourceimpl GraphicsStyle for PointSize
impl GraphicsStyle for PointSize
sourcefn draw_style(&self, state: &mut StyleContext)
fn draw_style(&self, state: &mut StyleContext)
Draws a shape with a style. Read more
sourceimpl PartialOrd<f32> for PointSize
impl PartialOrd<f32> for PointSize
sourcefn partial_cmp(&self, other: &f32) -> Option<Ordering>
fn partial_cmp(&self, other: &f32) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for PointSize
impl StructuralPartialEq for PointSize
Auto Trait Implementations
impl RefUnwindSafe for PointSize
impl Send for PointSize
impl Sync for PointSize
impl Unpin for PointSize
impl UnwindSafe for PointSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more