pub struct ScriptProfile {
pub scripts: BTreeMap<String, usize>,
pub digits: usize,
pub whitespace: usize,
pub punctuation: usize,
pub other: usize,
pub dominant_script: Option<String>,
pub is_mixed: bool,
}Expand description
Data type for script profile.
Fields§
§scripts: BTreeMap<String, usize>The scripts value.
digits: usizeThe digits value.
whitespace: usizeThe whitespace value.
punctuation: usizeThe punctuation value.
other: usizeThe other value.
dominant_script: Option<String>The dominant script value.
is_mixed: boolThe is mixed value.
Trait Implementations§
Source§impl Clone for ScriptProfile
impl Clone for ScriptProfile
Source§fn clone(&self) -> ScriptProfile
fn clone(&self) -> ScriptProfile
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 ScriptProfile
impl Debug for ScriptProfile
Source§impl<'de> Deserialize<'de> for ScriptProfile
impl<'de> Deserialize<'de> for ScriptProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScriptProfile
Source§impl PartialEq for ScriptProfile
impl PartialEq for ScriptProfile
Source§fn eq(&self, other: &ScriptProfile) -> bool
fn eq(&self, other: &ScriptProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptProfile
impl Serialize for ScriptProfile
impl StructuralPartialEq for ScriptProfile
Auto Trait Implementations§
impl Freeze for ScriptProfile
impl RefUnwindSafe for ScriptProfile
impl Send for ScriptProfile
impl Sync for ScriptProfile
impl Unpin for ScriptProfile
impl UnsafeUnpin for ScriptProfile
impl UnwindSafe for ScriptProfile
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