pub enum Element {
FrameElement(Rc<Frame>),
BlockElement(Rc<Block>),
TextElement(Rc<Text>),
ImageElement(Rc<Image>),
}Variants§
Implementations§
Source§impl Element
impl Element
pub fn uuid(&self) -> usize
pub fn text_length(&self) -> usize
pub fn end_of_element(&self) -> usize
pub fn start_of_element(&self) -> usize
pub fn is_block(&self) -> bool
pub fn get_block(&self) -> Option<Rc<Block>>
pub fn is_frame(&self) -> bool
pub fn get_frame(&self) -> Option<Rc<Frame>>
pub fn is_text(&self) -> bool
pub fn get_text(&self) -> Option<Rc<Text>>
pub fn is_image(&self) -> bool
pub fn get_image(&self) -> Option<Rc<Image>>
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
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