pub struct ScriptConfig {
pub use_native_ordering: bool,
pub delimiter: Option<String>,
pub sort_separator: Option<String>,
}Expand description
Configuration for specific scripts.
Fields§
§use_native_ordering: boolWhether to use native ordering for this script (e.g., FamilyGiven for CJK).
delimiter: Option<String>Custom delimiter between name parts for this script.
sort_separator: Option<String>Custom delimiter between family and given name when this script is inverted.
Trait Implementations§
Source§impl Clone for ScriptConfig
impl Clone for ScriptConfig
Source§fn clone(&self) -> ScriptConfig
fn clone(&self) -> ScriptConfig
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 ScriptConfig
impl Debug for ScriptConfig
Source§impl Default for ScriptConfig
impl Default for ScriptConfig
Source§fn default() -> ScriptConfig
fn default() -> ScriptConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptConfig
impl<'de> Deserialize<'de> for ScriptConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScriptConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScriptConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScriptConfig
impl PartialEq for ScriptConfig
Source§fn eq(&self, other: &ScriptConfig) -> bool
fn eq(&self, other: &ScriptConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptConfig
impl Serialize for ScriptConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ScriptConfig
Auto Trait Implementations§
impl Freeze for ScriptConfig
impl RefUnwindSafe for ScriptConfig
impl Send for ScriptConfig
impl Sync for ScriptConfig
impl Unpin for ScriptConfig
impl UnsafeUnpin for ScriptConfig
impl UnwindSafe for ScriptConfig
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