pub struct Image {
pub width: usize,
pub height: usize,
pub channels: usize,
pub data: Vec<u8>,
}Expand description
一张 8 位图:灰度(1 通道)或 RGB(3 通道),按行存放、无行间填充。
Fields§
§width: usize§height: usize§channels: usize§data: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Image
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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