Skip to main content

DraftStateAlg

Trait DraftStateAlg 

Source
pub trait DraftStateAlg {
    // Required methods
    fn draft(&self) -> &str;
    fn set_draft(&mut self, draft: String);
}
Expand description

Specifies add-sources draft storage.

Required Methods§

Source

fn draft(&self) -> &str

Observes the current editor draft.

Source

fn set_draft(&mut self, draft: String)

Replaces the editor draft.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§