pub enum Block {
Header(Header),
LogicalScreenDesc(LogicalScreenDesc),
GlobalColorTable(GlobalColorTable),
PlainText(PlainText),
GraphicControl(GraphicControl),
Comment(Comment),
Application(Application),
Unknown(Unknown),
ImageDesc(ImageDesc),
LocalColorTable(LocalColorTable),
ImageData(ImageData),
Trailer(Trailer),
}Expand description
A block within a GIF file.
Variants§
Header(Header)
Header block
LogicalScreenDesc(LogicalScreenDesc)
Logical screen descriptor block
GlobalColorTable(GlobalColorTable)
Global color table block
PlainText(PlainText)
Plain text extension block
GraphicControl(GraphicControl)
Graphics control extension block
Comment(Comment)
Comment extension block
Application(Application)
Application extension block
Unknown(Unknown)
Unknown extension block
ImageDesc(ImageDesc)
Image descriptor block
LocalColorTable(LocalColorTable)
Local color table block
ImageData(ImageData)
Image data block
Trailer(Trailer)
Trailer block
Implementations§
Trait Implementations§
Source§impl From<Application> for Block
impl From<Application> for Block
Source§fn from(b: Application) -> Self
fn from(b: Application) -> Self
Converts to this type from the input type.
Source§impl From<GlobalColorTable> for Block
impl From<GlobalColorTable> for Block
Source§fn from(b: GlobalColorTable) -> Self
fn from(b: GlobalColorTable) -> Self
Converts to this type from the input type.
Source§impl From<GraphicControl> for Block
impl From<GraphicControl> for Block
Source§fn from(b: GraphicControl) -> Self
fn from(b: GraphicControl) -> Self
Converts to this type from the input type.
Source§impl From<LocalColorTable> for Block
impl From<LocalColorTable> for Block
Source§fn from(b: LocalColorTable) -> Self
fn from(b: LocalColorTable) -> Self
Converts to this type from the input type.
Source§impl From<LogicalScreenDesc> for Block
impl From<LogicalScreenDesc> for Block
Source§fn from(b: LogicalScreenDesc) -> Self
fn from(b: LogicalScreenDesc) -> Self
Converts to this type from the input type.
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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