[][src]Struct titik::Image

pub struct Image<MSG> { /* fields omitted */ }

Image widget, supported formats: jpg, png

Implementations

impl<MSG> Image<MSG>[src]

pub fn new(bytes: Vec<u8>) -> Self[src]

create a new image widget

Trait Implementations

impl<MSG> Debug for Image<MSG>[src]

impl<MSG> Widget<MSG> for Image<MSG> where
    MSG: 'static, 
[src]

fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>[src]

draw this button to the buffer, with the given computed layout

Auto Trait Implementations

impl<MSG> RefUnwindSafe for Image<MSG> where
    MSG: RefUnwindSafe

impl<MSG> Send for Image<MSG> where
    MSG: Send

impl<MSG> Sync for Image<MSG> where
    MSG: Sync

impl<MSG> Unpin for Image<MSG> where
    MSG: Unpin

impl<MSG> UnwindSafe for Image<MSG> where
    MSG: UnwindSafe

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.