pub struct RandomZhOptions {
pub count: Option<usize>,
pub level_range: Option<(u8, u8)>,
pub stroke_count_range: Option<(u8, u8)>,
pub allow_duplicates: bool,
}
Expand description
Options for the random_zh
function.
§Fields
count
(Optional): The number of random characters to generate. Defaults to 1 if not specified.level_range
(Optional): A range of levels (e.g.,[1, 3]
) to filter the characters.stroke_count_range
(Optional): A range of stroke counts (e.g.,[5, 10]
) to filter the characters.allow_duplicates
(Default:false
): Whether duplicate characters are allowed in the result.
Fields§
§count: Option<usize>
§level_range: Option<(u8, u8)>
§stroke_count_range: Option<(u8, u8)>
§allow_duplicates: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RandomZhOptions
impl RefUnwindSafe for RandomZhOptions
impl Send for RandomZhOptions
impl Sync for RandomZhOptions
impl Unpin for RandomZhOptions
impl UnwindSafe for RandomZhOptions
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