Struct lotus_script::font::FontLetter
source · pub struct FontLetter {
pub character: char,
pub start: u32,
pub width: u32,
}
Expand description
A letter in a bitmap font.
Fields§
§character: char
The character represented by the letter.
start: u32
The start of the letter in the texture.
width: u32
The width of the letter in the texture.
Trait Implementations§
source§impl Clone for FontLetter
impl Clone for FontLetter
source§fn clone(&self) -> FontLetter
fn clone(&self) -> FontLetter
Returns a copy 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 FontLetter
impl Debug for FontLetter
source§impl<'de> Deserialize<'de> for FontLetter
impl<'de> Deserialize<'de> for FontLetter
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FontLetter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FontLetter, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FontLetter
impl Serialize for FontLetter
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FontLetter
Auto Trait Implementations§
impl Freeze for FontLetter
impl RefUnwindSafe for FontLetter
impl Send for FontLetter
impl Sync for FontLetter
impl Unpin for FontLetter
impl UnwindSafe for FontLetter
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