Skip to main content

SvgTextContentElement

Trait SvgTextContentElement 

Source
pub trait SvgTextContentElement<State, Action = ()>: SvgGraphicsElement<State, Action, DomNode: AsRef<SvgTextContentElement>> {
    // Provided methods
    fn fill(self, brush: impl Into<Brush>) -> Fill<Self, State, Action> { ... }
    fn stroke(
        self,
        brush: impl Into<Brush>,
        style: Stroke,
    ) -> Stroke<Self, State, Action> { ... }
}

Provided Methods§

Source

fn fill(self, brush: impl Into<Brush>) -> Fill<Self, State, Action>

Source

fn stroke( self, brush: impl Into<Brush>, style: Stroke, ) -> Stroke<Self, State, Action>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<State, Action, T> SvgTextContentElement<State, Action> for T
where T: SvgGraphicsElement<State, Action>, T::DomNode: AsRef<SvgTextContentElement>,