Trait FTMLNode

Source
pub trait FTMLNode {
    type Ancestors<'a>: Iterator<Item = Self>
       where Self: 'a;

    // Required methods
    fn ancestors(&self) -> Self::Ancestors<'_>;
    fn with_elements<R>(
        &mut self,
        f: impl FnMut(Option<&mut FTMLElements>) -> R,
    ) -> R;
    fn delete(&self);
    fn delete_children(&self);
    fn range(&self) -> DocumentRange;
    fn inner_range(&self) -> DocumentRange;
    fn string(&self) -> String;
    fn inner_string(&self) -> String;
    fn as_notation(&self) -> Option<NotationSpec>;
    fn as_op_notation(&self) -> Option<OpNotation>;
    fn as_term(&self) -> Term;
}

Required Associated Types§

Source

type Ancestors<'a>: Iterator<Item = Self> where Self: 'a

Required Methods§

Source

fn ancestors(&self) -> Self::Ancestors<'_>

Source

fn with_elements<R>( &mut self, f: impl FnMut(Option<&mut FTMLElements>) -> R, ) -> R

Source

fn delete(&self)

Source

fn delete_children(&self)

Source

fn range(&self) -> DocumentRange

Source

fn inner_range(&self) -> DocumentRange

Source

fn string(&self) -> String

Source

fn inner_string(&self) -> String

Source

fn as_notation(&self) -> Option<NotationSpec>

Source

fn as_op_notation(&self) -> Option<OpNotation>

Source

fn as_term(&self) -> Term

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§