pub struct CharConfig {
pub path: PathBuf,
pub frame: Option<Frame>,
pub padding: u32,
}Expand description
Character configuration entry
Fields§
§path: PathBufPath to the sprite sheet image
frame: Option<Frame>Frame definition (optional, for sprite sheets)
padding: u32Padding around the character (default: 4)
Trait Implementations§
Source§impl Clone for CharConfig
impl Clone for CharConfig
Source§fn clone(&self) -> CharConfig
fn clone(&self) -> CharConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharConfig
impl Debug for CharConfig
Source§impl<'de> Deserialize<'de> for CharConfig
impl<'de> Deserialize<'de> for CharConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CharConfig
impl RefUnwindSafe for CharConfig
impl Send for CharConfig
impl Sync for CharConfig
impl Unpin for CharConfig
impl UnsafeUnpin for CharConfig
impl UnwindSafe for CharConfig
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