pub struct SvgStyleOverride { /* private fields */ }Expand description
Partial style override merged in precedence order during SVG emission.
Implementations§
Source§impl SvgStyleOverride
impl SvgStyleOverride
pub fn new() -> Self
pub fn with_stroke(self, color: SvgColor) -> Self
pub fn with_fill(self, color: SvgColor) -> Self
pub const fn with_stroke_width_nm(self, width_nm: u64) -> Self
pub const fn with_line_style(self, line_style: SvgLineStyle) -> Self
pub const fn with_fill_mode(self, fill_mode: SvgFillMode) -> Self
pub const fn with_opacity(self, opacity: f64) -> Self
pub const fn with_visibility(self, visible: bool) -> Self
pub fn stroke(&self) -> Option<&SvgColor>
pub fn fill(&self) -> Option<&SvgColor>
pub const fn stroke_width_nm(&self) -> Option<u64>
pub const fn line_style(&self) -> Option<SvgLineStyle>
pub const fn fill_mode(&self) -> Option<SvgFillMode>
pub const fn opacity(&self) -> Option<f64>
pub const fn visible(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for SvgStyleOverride
impl Clone for SvgStyleOverride
Source§fn clone(&self) -> SvgStyleOverride
fn clone(&self) -> SvgStyleOverride
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 SvgStyleOverride
impl Debug for SvgStyleOverride
Source§impl Default for SvgStyleOverride
impl Default for SvgStyleOverride
Source§fn default() -> SvgStyleOverride
fn default() -> SvgStyleOverride
Returns the “default value” for a type. Read more
Source§impl PartialEq for SvgStyleOverride
impl PartialEq for SvgStyleOverride
impl StructuralPartialEq for SvgStyleOverride
Auto Trait Implementations§
impl Freeze for SvgStyleOverride
impl RefUnwindSafe for SvgStyleOverride
impl Send for SvgStyleOverride
impl Sync for SvgStyleOverride
impl Unpin for SvgStyleOverride
impl UnsafeUnpin for SvgStyleOverride
impl UnwindSafe for SvgStyleOverride
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