pub struct DisplayResolutor;Expand description
A [TextResolutor] for the console
Trait Implementations§
Source§impl TextResolutor for DisplayResolutor
impl TextResolutor for DisplayResolutor
fn resolve_content(&self, resolvable: &Resolvable) -> TextComponent
fn resolve_custom(&self, _data: &CustomData) -> Option<TextComponent>
fn translate(&self, key: &str) -> Option<String>
fn resolve_other(&self, content: &Content) -> TextComponent
fn split_translation(&self, text: String) -> Vec<(String, usize)>
Auto Trait Implementations§
impl Freeze for DisplayResolutor
impl RefUnwindSafe for DisplayResolutor
impl Send for DisplayResolutor
impl Sync for DisplayResolutor
impl Unpin for DisplayResolutor
impl UnsafeUnpin for DisplayResolutor
impl UnwindSafe for DisplayResolutor
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