pub struct PhoneticProps {
pub font_id: u32,
pub kind: Option<String>,
pub alignment: Option<String>,
}Expand description
The <phoneticPr> of a string item: how its phonetic runs are displayed. kind (type) and
alignment only ever hold values ISO/IEC 29500-1 §18.18.57 ST_PhoneticType / §18.18.56
ST_PhoneticAlignment define, so damaged files cannot be written back invalid.
Fields§
§font_id: u32fontId: a required attribute, an index into the style sheet’s fonts. A file without one
gets 0 — the Normal style’s font, which an out-of-range index falls back to anyway.
kind: Option<String>§alignment: Option<String>Trait Implementations§
Source§impl Clone for PhoneticProps
impl Clone for PhoneticProps
Source§fn clone(&self) -> PhoneticProps
fn clone(&self) -> PhoneticProps
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 PhoneticProps
impl Debug for PhoneticProps
Source§impl Default for PhoneticProps
impl Default for PhoneticProps
Source§fn default() -> PhoneticProps
fn default() -> PhoneticProps
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PhoneticProps
impl<'de> Deserialize<'de> for PhoneticProps
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 PhoneticProps
Source§impl PartialEq for PhoneticProps
impl PartialEq for PhoneticProps
Source§impl Serialize for PhoneticProps
impl Serialize for PhoneticProps
impl StructuralPartialEq for PhoneticProps
Auto Trait Implementations§
impl Freeze for PhoneticProps
impl RefUnwindSafe for PhoneticProps
impl Send for PhoneticProps
impl Sync for PhoneticProps
impl Unpin for PhoneticProps
impl UnsafeUnpin for PhoneticProps
impl UnwindSafe for PhoneticProps
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.