pub struct CharImage {
pub char: String,
pub image: DynamicImage,
pub width: u32,
pub height: u32,
pub original_width: u32,
pub original_height: u32,
pub padding: u32,
}Expand description
A loaded character image with its metadata
Fields§
§char: StringThe character identifier
image: DynamicImageThe loaded image (with padding applied)
width: u32Image width in pixels (including padding)
height: u32Image height in pixels (including padding)
original_width: u32Original width (without padding)
original_height: u32Original height (without padding)
padding: u32Padding applied
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CharImage
impl RefUnwindSafe for CharImage
impl Send for CharImage
impl Sync for CharImage
impl Unpin for CharImage
impl UnsafeUnpin for CharImage
impl UnwindSafe for CharImage
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