pub struct DictionaryReadingSegment {
pub surface: String,
pub reading: String,
pub source: DictionaryReadingSegmentSource,
}Expand description
One surface segment and its selected UniDic reading.
Fields§
§surface: StringSurface text covered by the segment.
reading: StringReading selected for the segment.
source: DictionaryReadingSegmentSourceWhether the segment came from the dictionary or direct surface fallback.
Trait Implementations§
Source§impl Clone for DictionaryReadingSegment
impl Clone for DictionaryReadingSegment
Source§fn clone(&self) -> DictionaryReadingSegment
fn clone(&self) -> DictionaryReadingSegment
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 DictionaryReadingSegment
impl Debug for DictionaryReadingSegment
impl Eq for DictionaryReadingSegment
Source§impl PartialEq for DictionaryReadingSegment
impl PartialEq for DictionaryReadingSegment
impl StructuralPartialEq for DictionaryReadingSegment
Auto Trait Implementations§
impl Freeze for DictionaryReadingSegment
impl RefUnwindSafe for DictionaryReadingSegment
impl Send for DictionaryReadingSegment
impl Sync for DictionaryReadingSegment
impl Unpin for DictionaryReadingSegment
impl UnsafeUnpin for DictionaryReadingSegment
impl UnwindSafe for DictionaryReadingSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.