Struct png::text_metadata::ZTXtChunk [−][src]
pub struct ZTXtChunk {
pub keyword: String,
// some fields omitted
}
Expand description
Struct representing a zTXt chunk
Fields
keyword: String
Keyword field of the tEXt chunk. Needs to be between 1-79 bytes when encoded as Latin-1.
Implementations
Creates a new ZTXt chunk.
Decompresses the inner text, mutating its own state. Can only handle decompressed text up to DECOMPRESSION_LIMIT
bytes.
Decompresses the inner text, mutating its own state. Can only handle decompressed text up to limit
bytes.
Decompresses the inner text, and returns it as a String
.
If decompression uses more the 2MiB, first call decompress with limit, and then this method.
Compresses the inner text, mutating its own state.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ZTXtChunk
impl UnwindSafe for ZTXtChunk
Blanket Implementations
Mutably borrows from an owned value. Read more