pub struct TextRecord {
pub font_id: Option<u16>,
pub color: Option<StraightSRgba8>,
pub offset_x: i16,
pub offset_y: i16,
pub font_size: Option<u16>,
pub entries: Vec<GlyphEntry>,
}
Fields§
§font_id: Option<u16>
§color: Option<StraightSRgba8>
§offset_x: i16
§offset_y: i16
§font_size: Option<u16>
§entries: Vec<GlyphEntry>
Trait Implementations§
Source§impl Clone for TextRecord
impl Clone for TextRecord
Source§fn clone(&self) -> TextRecord
fn clone(&self) -> TextRecord
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 TextRecord
impl Debug for TextRecord
Source§impl<'de> Deserialize<'de> for TextRecord
impl<'de> Deserialize<'de> for TextRecord
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
Source§impl Hash for TextRecord
impl Hash for TextRecord
Source§impl Ord for TextRecord
impl Ord for TextRecord
Source§fn cmp(&self, other: &TextRecord) -> Ordering
fn cmp(&self, other: &TextRecord) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextRecord
impl PartialEq for TextRecord
Source§impl PartialOrd for TextRecord
impl PartialOrd for TextRecord
Source§impl Serialize for TextRecord
impl Serialize for TextRecord
impl Eq for TextRecord
impl StructuralPartialEq for TextRecord
Auto Trait Implementations§
impl Freeze for TextRecord
impl RefUnwindSafe for TextRecord
impl Send for TextRecord
impl Sync for TextRecord
impl Unpin for TextRecord
impl UnwindSafe for TextRecord
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