Enum text_document::text_document::Element
source · [−]pub enum Element {
FrameElement(Rc<Frame>),
BlockElement(Rc<Block>),
TextElement(Rc<Text>),
ImageElement(Rc<Image>),
}
Variants
FrameElement(Rc<Frame>)
BlockElement(Rc<Block>)
TextElement(Rc<Text>)
ImageElement(Rc<Image>)
Implementations
sourceimpl 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 !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more