pub enum Text {
Literal(String),
Res(Res),
NameOf(Ref),
Lang(String),
}Expand description
A text a player reads: Yog text as written, a .yres text, the name
of some content (@item:minecraft:stick shows “Stick”), or any
translation key (@lang:gui.done).
Variants§
Trait Implementations§
Source§impl Schema for Text
impl Schema for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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