pub struct ScriptProfile {
pub cjk_fraction: f64,
pub latin_fraction: f64,
pub char_count: usize,
}Expand description
Lightweight script profile computed over a single string.
Fields§
§cjk_fraction: f64Fraction of characters that are CJK (0.0-1.0).
latin_fraction: f64Fraction of characters that are ASCII letters (0.0-1.0).
char_count: usizeTotal character count (not byte count).
Implementations§
Source§impl ScriptProfile
impl ScriptProfile
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 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 ==.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