Struct TEXtChunk
pub struct TEXtChunk { pub keyword: String, pub text: String }
Struct representing a tEXt chunk
Fields
keyword: StringKeyword field of the tEXt chunk. Needs to be between 1-79 bytes when encoded as Latin-1.
text: StringText field of tEXt chunk. Can be at most 2GB.
Implementations
impl TEXtChunk
fn new(keyword: impl Into<String>, text: impl Into<String>) -> SelfConstructs a new TEXtChunk. Not sure whether it should take &str or String.
Trait Implementations
impl Clone for TEXtChunk
fn clone(&self) -> Self
impl Debug for TEXtChunk
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl EncodableTextChunk for TEXtChunk
fn encode<W: Write>(&self, w: &mut W) -> Result<(), EncodingError>Encodes TEXtChunk to a Writer. The keyword and text are separated by a byte of zeroes.
impl Eq for TEXtChunk
impl PartialEq for TEXtChunk
fn eq(&self, other: &Self) -> bool