[][src]Struct piet_svg::RenderContext

pub struct RenderContext { /* fields omitted */ }

piet::RenderContext for generating SVG images

Implementations

impl RenderContext[src]

pub fn new() -> Self[src]

Construct an empty RenderContext

pub fn write(&self, writer: impl Write) -> Result<()>[src]

Write graphics rendered so far to an std::io::Write impl, such as std::fs::File

Additional rendering can be done afterwards.

Trait Implementations

impl IntoBrush<RenderContext> for Brush[src]

impl RenderContext for RenderContext[src]

type Brush = Brush

The type of a "brush". Read more

type Text = Text

An associated factory for creating text layouts and related resources.

type TextLayout = TextLayout

type Image = SvgImage

The associated type of an image.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T[src]

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.