pub struct Robot36Image { /* private fields */ }Expand description
Represents an image that will be encoded
Implementations§
Source§impl Robot36Image
impl Robot36Image
Sourcepub fn from_rgb8_vec(vec: Vec<(R, G, B)>) -> Result<Self, ImageCreationError>
pub fn from_rgb8_vec(vec: Vec<(R, G, B)>) -> Result<Self, ImageCreationError>
Creates a Robot36Image from a RGB8 vec.
pub fn get_height(&self) -> usize
pub fn get_width(&self) -> usize
pub fn get_y(&self, x: usize, y: usize) -> &Y
pub fn get_u(&self, x: usize, y: usize) -> &U
pub fn get_v(&self, x: usize, y: usize) -> &V
Auto Trait Implementations§
impl Freeze for Robot36Image
impl RefUnwindSafe for Robot36Image
impl Send for Robot36Image
impl Sync for Robot36Image
impl Unpin for Robot36Image
impl UnsafeUnpin for Robot36Image
impl UnwindSafe for Robot36Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more