pub struct PathOptions {
pub stroke: bool,
pub color: Color,
pub weight: u32,
pub opacity: f32,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub fill: bool,
pub fill_color: Color,
pub fill_opacity: f32,
}Fields§
§stroke: boolWhether to draw stroke along the path. Set it to false to disable borders on polygons or circles.
color: ColorStroke color
weight: u32Stroke width in pixels
opacity: f32Stroke opacity
line_cap: LineCapDefines shape to be used at the end of the stroke.
line_join: LineJoinDefines shape to be used at the corners of the stroke.
fill: boolWhether to fill the path with color.
fill_color: ColorFill color. Defaults to the value of the color option.
fill_opacity: f32Fill opacity.
Trait Implementations§
Source§impl Clone for PathOptions
impl Clone for PathOptions
Source§fn clone(&self) -> PathOptions
fn clone(&self) -> PathOptions
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathOptions
impl Debug for PathOptions
Source§impl Default for PathOptions
impl Default for PathOptions
Source§impl<'de> Deserialize<'de> for PathOptions
impl<'de> Deserialize<'de> for PathOptions
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 PathOptions
impl PartialEq for PathOptions
Source§impl Serialize for PathOptions
impl Serialize for PathOptions
impl StructuralPartialEq for PathOptions
Auto Trait Implementations§
impl Freeze for PathOptions
impl RefUnwindSafe for PathOptions
impl Send for PathOptions
impl Sync for PathOptions
impl Unpin for PathOptions
impl UnwindSafe for PathOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.