Enum TextObject
pub enum TextObject {
Player {
profile: TextProfile,
hat: bool,
fallback: Option<Box<Text>>,
},
Atlas {
atlas: String,
sprite: String,
fallback: Option<Box<Text>>,
},
}Expand description
An inline object embedded in text.
Variants§
Player
A player head, retaining the profile properties carried by the component.
Fields
§
profile: TextProfileProfile data, including signed skin properties when present.
Atlas
A sprite in a named atlas.
Trait Implementations§
§impl Clone for TextObject
impl Clone for TextObject
§fn clone(&self) -> TextObject
fn clone(&self) -> TextObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextObject
impl Debug for TextObject
§impl PartialEq for TextObject
impl PartialEq for TextObject
impl StructuralPartialEq for TextObject
Auto Trait Implementations§
impl Freeze for TextObject
impl RefUnwindSafe for TextObject
impl Send for TextObject
impl Sync for TextObject
impl Unpin for TextObject
impl UnsafeUnpin for TextObject
impl UnwindSafe for TextObject
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