pub struct Decomp {
pub zigen: Vec<char>,
pub strokes: Vec<Stroke>,
pub shape: Shape,
}Expand description
Owned counterpart of DecompRef. Use Decomp::as_ref to feed the
runtime encoder; the encoder itself only ever sees the borrowed form.
Fields§
§zigen: Vec<char>Ordered 字根 sequence (1..=N).
strokes: Vec<Stroke>Stroke sequence, used for 成字字根 and 末笔识别码 rules.
shape: Shape字形 (left-right / top-bottom / whole).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decomp
impl RefUnwindSafe for Decomp
impl Send for Decomp
impl Sync for Decomp
impl Unpin for Decomp
impl UnsafeUnpin for Decomp
impl UnwindSafe for Decomp
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