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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>