pub struct TextElement { /* private fields */ }
Implementations§
Source§impl TextElement
impl TextElement
pub fn get_text(&self) -> &str
pub fn set_text<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn get_run_properties(&self) -> Option<&Font>
pub fn get_run_properties_mut(&mut self) -> &mut Font
pub fn set_run_properties(&mut self, value: Font) -> &mut Self
pub fn get_font(&self) -> Option<&Font>
pub fn get_font_mut(&mut self) -> &mut Font
pub fn set_font(&mut self, value: Font) -> &mut Self
Trait Implementations§
Source§impl Clone for TextElement
impl Clone for TextElement
Source§fn clone(&self) -> TextElement
fn clone(&self) -> TextElement
Returns a duplicate of the value. Read more
1.0.0 · 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 TextElement
impl Debug for TextElement
Source§impl Default for TextElement
impl Default for TextElement
Source§fn default() -> TextElement
fn default() -> TextElement
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextElement
impl PartialEq for TextElement
Source§impl PartialOrd for TextElement
impl PartialOrd for TextElement
impl StructuralPartialEq for TextElement
Auto Trait Implementations§
impl Freeze for TextElement
impl RefUnwindSafe for TextElement
impl Send for TextElement
impl Sync for TextElement
impl Unpin for TextElement
impl UnwindSafe for TextElement
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