pub struct Image {
pub path: String,
/* private fields */
}
Fields
path: String
Implementations
sourceimpl Image
impl Image
pub fn new(path: &str) -> Image
pub fn render_at_position(&mut self, x: u16, y: u16, width: u16, height: u16)
pub fn render(&mut self, width: u16, height: u16)
pub fn render_pixels_at_position(
x: u16,
y: u16,
width: u16,
height: u16,
pixels: &[[u8; 4]],
pixel_width: usize
)
pub fn render_pixels(
width: u16,
height: u16,
pixels: &[[u8; 4]],
pixel_width: usize
)
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more