Enum png::text_metadata::OptCompressed
source · enum OptCompressed {
Compressed(Vec<u8>),
Uncompressed(String),
}
Expand description
Private enum encoding the compressed and uncompressed states of zTXt/iTXt text field.
Variants§
Compressed(Vec<u8>)
Compressed version of text field. Can be at most 2GB.
Uncompressed(String)
Uncompressed text field.
Trait Implementations§
source§impl Clone for OptCompressed
impl Clone for OptCompressed
source§fn clone(&self) -> OptCompressed
fn clone(&self) -> OptCompressed
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptCompressed
impl Debug for OptCompressed
source§impl PartialEq for OptCompressed
impl PartialEq for OptCompressed
impl Eq for OptCompressed
impl StructuralPartialEq for OptCompressed
Auto Trait Implementations§
impl Freeze for OptCompressed
impl RefUnwindSafe for OptCompressed
impl Send for OptCompressed
impl Sync for OptCompressed
impl Unpin for OptCompressed
impl UnwindSafe for OptCompressed
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)