pub enum ValidationWarningKind {
MixedScriptString(String),
BidiCharsInString(String),
BidiCharsInIdentifier(String),
MixedScriptIdentifier(String),
ConfusableIdentifier(String),
}
Variants§
MixedScriptString(String)
A string contains mixed scripts. Different scripts can contain visually similar characters which may be confused for each other.
BidiCharsInString(String)
A string contains BIDI control characters. These can be used to create crafted pieces of code that obfuscate true control flow.
BidiCharsInIdentifier(String)
An id contains BIDI control characters. These can be used to create crafted pieces of code that obfuscate true control flow.
MixedScriptIdentifier(String)
An id contains mixed scripts. This can cause characters to be confused for each other.
ConfusableIdentifier(String)
An id contains characters that fall outside of the General Security Profile for Identifiers. We recommend adhering to this if possible. See Unicode® Technical Standard #39 for more info.
Trait Implementations§
source§impl Clone for ValidationWarningKind
impl Clone for ValidationWarningKind
source§fn clone(&self) -> ValidationWarningKind
fn clone(&self) -> ValidationWarningKind
Returns a copy 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 ValidationWarningKind
impl Debug for ValidationWarningKind
source§impl Display for ValidationWarningKind
impl Display for ValidationWarningKind
source§impl Error for ValidationWarningKind
impl Error for ValidationWarningKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for ValidationWarningKind
impl PartialEq for ValidationWarningKind
source§fn eq(&self, other: &ValidationWarningKind) -> bool
fn eq(&self, other: &ValidationWarningKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValidationWarningKind
impl StructuralPartialEq for ValidationWarningKind
Auto Trait Implementations§
impl Freeze for ValidationWarningKind
impl RefUnwindSafe for ValidationWarningKind
impl Send for ValidationWarningKind
impl Sync for ValidationWarningKind
impl Unpin for ValidationWarningKind
impl UnwindSafe for ValidationWarningKind
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<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.