pub struct Glyph {
pub width: u32,
pub height: u32,
pub default_duration_ms: u32,
pub frames: Vec<Frame>,
}Fieldsยง
ยงwidth: u32ยงheight: u32ยงdefault_duration_ms: u32ยงframes: Vec<Frame>Implementationsยง
Sourceยงimpl Glyph
impl Glyph
pub fn new(width: u32, height: u32, default_duration_ms: u32) -> Self
pub fn add_frame(&mut self, frame: Frame) -> Result<(), GlyphError>
pub fn frames(&self) -> &[Frame]
pub fn write<W: Write>(&self, writer: &mut W) -> Result<(), GlyphError>
pub fn read<R: Read>(reader: &mut R) -> Result<Self, GlyphError>
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
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