Struct png::encoder::PartialInfo
source · struct PartialInfo {
width: u32,
height: u32,
bit_depth: BitDepth,
color_type: ColorType,
frame_control: Option<FrameControl>,
animation_control: Option<AnimationControl>,
compression: Compression,
has_palette: bool,
}
Fields§
§width: u32
§height: u32
§bit_depth: BitDepth
§color_type: ColorType
§frame_control: Option<FrameControl>
§animation_control: Option<AnimationControl>
§compression: Compression
§has_palette: bool
Implementations§
source§impl PartialInfo
impl PartialInfo
fn new(info: &Info<'_>) -> Self
fn bpp_in_prediction(&self) -> BytesPerPixel
fn raw_row_length(&self) -> usize
fn raw_row_length_from_width(&self, width: u32) -> usize
Auto Trait Implementations§
impl RefUnwindSafe for PartialInfo
impl Send for PartialInfo
impl Sync for PartialInfo
impl Unpin for PartialInfo
impl UnwindSafe for PartialInfo
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