pub struct PhoneticRun {
pub start: u32,
pub end: u32,
pub text: String,
}Expand description
One phonetic (furigana) run of a string item (<rPh>): the reading text and the range of the
base text it annotates.
start and end are zero-based offsets into the base text (sb and eb in the file) with
start < end; reading keeps them within the text’s length in UTF-16 code units. Behaviour
reference: ISO/IEC 29500-1 §18.4.6 rPh and the Microsoft Learn PhoneticRun class.
Fields§
§start: u32§end: u32§text: StringTrait Implementations§
Source§impl Clone for PhoneticRun
impl Clone for PhoneticRun
Source§fn clone(&self) -> PhoneticRun
fn clone(&self) -> PhoneticRun
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 PhoneticRun
impl Debug for PhoneticRun
Source§impl<'de> Deserialize<'de> for PhoneticRun
impl<'de> Deserialize<'de> for PhoneticRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PhoneticRun
Source§impl PartialEq for PhoneticRun
impl PartialEq for PhoneticRun
Source§impl Serialize for PhoneticRun
impl Serialize for PhoneticRun
impl StructuralPartialEq for PhoneticRun
Auto Trait Implementations§
impl Freeze for PhoneticRun
impl RefUnwindSafe for PhoneticRun
impl Send for PhoneticRun
impl Sync for PhoneticRun
impl Unpin for PhoneticRun
impl UnsafeUnpin for PhoneticRun
impl UnwindSafe for PhoneticRun
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.