#[repr(C)]pub struct WfcImage {
pub data: *mut i8,
pub component_cnt: c_int,
pub width: c_int,
pub height: c_int,
}Fields
data: *mut i8component_cnt: c_intwidth: c_intheight: c_intImplementations
sourceimpl WfcImage
impl WfcImage
pub fn new(
data: *mut i8,
component_cnt: c_int,
width: c_int,
height: c_int
) -> WfcImage
pub fn from_vec(
width: i32,
height: i32,
component_cnt: i32,
data: Vec<u8>
) -> *mut WfcImage
pub fn from_file(filename: &str) -> Option<*mut WfcImage>
pub fn vec(&self) -> Vec<u8>
pub fn num_bytes(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WfcImage
impl !Send for WfcImage
impl !Sync for WfcImage
impl Unpin for WfcImage
impl UnwindSafe for WfcImage
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