[−][src]Struct gift::FrameEncoder
Encoder for writing Frames into a GIF file.
Methods
impl<W: Write> FrameEncoder<W>
[src]
pub fn encode_preamble(
&mut self,
preamble: &Preamble
) -> Result<(), EncodeError>
[src]
&mut self,
preamble: &Preamble
) -> Result<(), EncodeError>
Encode the GIF preamble blocks.
Must be called only once, before encode_frame.
pub fn encode_frame(&mut self, frame: &Frame) -> Result<(), EncodeError>
[src]
Encode one Frame
of a GIF file.
Must be called after encode_preamble.
pub fn encode_trailer(&mut self) -> Result<(), EncodeError>
[src]
Encode the Trailer of a GIF file.
Must be called last, after all Frame
s have been encoded with
encode_frame.
Auto Trait Implementations
impl<W> Send for FrameEncoder<W> where
W: Send,
W: Send,
impl<W> Sync for FrameEncoder<W> where
W: Sync,
W: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,