Trait DocApi

Source
pub trait DocApi {
    // Required methods
    fn value(&self) -> Option<String>;
    fn set_value(&self, value: &str);
    fn set_gutter_marker<H>(
        &self,
        line_handle: H,
        id: GutterId,
        el: &Element,
    ) -> LineHandle
       where H: Into<LineHandle>;
    fn clear_gutter_marker<H>(&self, line_handle: H, id: GutterId) -> LineHandle
       where H: Into<LineHandle>;
    fn clear_gutter(&self, id: GutterId);
}

Required Methods§

Source

fn value(&self) -> Option<String>

Source

fn set_value(&self, value: &str)

Source

fn set_gutter_marker<H>( &self, line_handle: H, id: GutterId, el: &Element, ) -> LineHandle
where H: Into<LineHandle>,

Source

fn clear_gutter_marker<H>(&self, line_handle: H, id: GutterId) -> LineHandle
where H: Into<LineHandle>,

Source

fn clear_gutter(&self, id: GutterId)

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§