pub struct ElementData { /* private fields */ }Expand description
The fields ElementNode adds. Numbers a document can set
(indent, textFormat) are kept as the JS number they parsed to, so a
document writes back exactly what JS writes.
Implementations§
Source§impl ElementData
impl ElementData
Sourcepub fn get_format_type(&self) -> &'static str
pub fn get_format_type(&self) -> &'static str
getFormatType(): '', 'left', 'start', 'center', 'right',
'end' or 'justify'.
Sourcepub fn get_format(&self) -> u8
pub fn get_format(&self) -> u8
getFormat(): the alignment flag.
pub fn get_style(&self) -> &str
pub fn get_indent(&self) -> f64
pub fn get_direction(&self) -> Option<Direction>
pub fn get_text_format(&self) -> f64
pub fn get_text_style(&self) -> &str
pub fn get_children_size(&self) -> usize
Trait Implementations§
Source§impl Clone for ElementData
impl Clone for ElementData
Source§impl Debug for ElementData
impl Debug for ElementData
Auto Trait Implementations§
impl Forget for ElementData
impl Freeze for ElementData
impl Move for ElementData
impl RefUnwindSafe for ElementData
impl Send for ElementData
impl Sync for ElementData
impl Unpin for ElementData
impl UnsafeUnpin for ElementData
impl UnwindSafe for ElementData
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