pub struct DiagnosticText {
pub key: DiagnosticTextKey,
pub text: String,
}Fields§
§key: DiagnosticTextKey§text: StringImplementations§
Source§impl DiagnosticText
impl DiagnosticText
pub fn new(key: DiagnosticTextKey, text: impl Into<String>) -> Self
pub fn render( key: DiagnosticTextKey, locale: MessageLocale, args: MessageArgs, ) -> Self
pub fn text_with_code(&self) -> String
Trait Implementations§
Source§impl Clone for DiagnosticText
impl Clone for DiagnosticText
Source§fn clone(&self) -> DiagnosticText
fn clone(&self) -> DiagnosticText
Returns a duplicate 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 DiagnosticText
impl Debug for DiagnosticText
Source§impl PartialEq for DiagnosticText
impl PartialEq for DiagnosticText
impl Eq for DiagnosticText
impl StructuralPartialEq for DiagnosticText
Auto Trait Implementations§
impl Freeze for DiagnosticText
impl RefUnwindSafe for DiagnosticText
impl Send for DiagnosticText
impl Sync for DiagnosticText
impl Unpin for DiagnosticText
impl UnsafeUnpin for DiagnosticText
impl UnwindSafe for DiagnosticText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.