[][src]Struct dot_canvas::Context

pub struct Context { /* fields omitted */ }

Holds the state of the Canvas when painting to it. width of 1 cell text is 0.5 and height is 1.0

Implementations

impl Context[src]

pub fn new(width: f32, height: f32) -> Self[src]

pub fn to_string(&self) -> String[src]

pub fn draw<'b, S>(&mut self, shape: &'b S) where
    S: Shape<'b>, 
[src]

Draw any object that may implement the Shape trait

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

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, 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.