#[non_exhaustive]pub struct Text {Show 14 fields
pub text: String,
pub style: Option<Name>,
pub at: P3,
pub at2: Option<P3>,
pub height: f64,
pub rotation: f64,
pub width: Option<f64>,
pub oblique: Option<f64>,
pub generation: Option<u32>,
pub halign: u32,
pub valign: u32,
pub tag: Option<String>,
pub attr_flags: u32,
pub mtext: Option<Box<MText>>,
}Expand description
TEXT, ATTRIB and ATTDEF
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: String1, decoded (\U+XXXX; the %% codes stay: specials())
style: Option<Name>7 (Standard when absent)
at: P310, 11 (OCS)
at2: Option<P3>§height: f6440
rotation: f6450 (degrees)
width: Option<f64>41, 51 (degrees): None when absent (the style’s)
oblique: Option<f64>§generation: Option<u32>71: 2 backward, 4 upside down (None: the style’s)
halign: u3272 (0 left, 1 center, 2 right, 3 aligned, 4 middle, 5 fit), 73 (0 baseline, 1 bottom, 2 middle, 3 top)
valign: u32§tag: Option<String>ATTRIB and ATTDEF: the tag (2) and the flags (70: 1 invisible, 2 constant, 4 verify, 8 preset)
attr_flags: u32§mtext: Option<Box<MText>>ATTRIB / ATTDEF of several lines (R2018: an MTEXT inside them)
Trait Implementations§
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Forget for Text
impl Freeze for Text
impl Move for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Textwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const MText is !null: UnsafeUnpin,
PhantomData<MText>: UnsafeUnpin,
impl UnwindSafe for Text
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