pub struct MixedScript {
pub name: String,
pub ch: char,
pub script: &'static str,
pub other_script: &'static str,
pub reads_as: Option<String>,
}Expand description
A name spelled in more than one script, and the character that shows it.
Reported by mixed_script, and a warning at every door — a mixed-script
name still binds.
Fields§
§name: StringThe name as written.
ch: charThe first character that does not belong to the name’s own script.
script: &'static strThe script the rest of the name is written in.
other_script: &'static strThe script MixedScript::ch belongs to.
reads_as: Option<String>The all-ASCII spelling the name reads as, from UAX #39’s confusables
data. None when the plain reading is itself not ASCII — Ωmega
reduces to Ωrnega, which teaches nothing.
Implementations§
Source§impl MixedScript
impl MixedScript
Sourcepub fn suggestion(&self) -> String
pub fn suggestion(&self) -> String
What to do about it. Pairs with the message as a suggestion.
Trait Implementations§
Source§impl Clone for MixedScript
impl Clone for MixedScript
Source§fn clone(&self) -> MixedScript
fn clone(&self) -> MixedScript
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 moreSource§impl Debug for MixedScript
impl Debug for MixedScript
Source§impl Display for MixedScript
impl Display for MixedScript
impl Eq for MixedScript
Source§impl PartialEq for MixedScript
impl PartialEq for MixedScript
impl StructuralPartialEq for MixedScript
Auto Trait Implementations§
impl Freeze for MixedScript
impl RefUnwindSafe for MixedScript
impl Send for MixedScript
impl Sync for MixedScript
impl Unpin for MixedScript
impl UnsafeUnpin for MixedScript
impl UnwindSafe for MixedScript
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.