[][src]Struct piet_common::Device

pub struct Device;

A struct that can be used to create bitmap render contexts.

In the case of Cairo, being a software renderer, no state is needed.

Methods

impl Device[src]

pub fn new() -> Result<Device, Error>[src]

Create a new device.

pub fn bitmap_target(
    &self,
    width: usize,
    height: usize,
    pix_scale: f64
) -> Result<BitmapTarget, Error>
[src]

Create a new bitmap target.

Auto Trait Implementations

impl Send for Device

impl Sync for Device

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> RoundFrom for T[src]

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