Skip to main content

NoteWrite

Trait NoteWrite 

Source
pub trait NoteWrite: Note
where Self::Properties: Serialize, Self::Error: From<Error> + From<Error> + From<Error>,
{ // Provided methods fn flush_content( &self, open_option: &OpenOptions, ) -> Result<(), Self::Error> { ... } fn flush_properties( &self, open_option: &OpenOptions, ) -> Result<(), Self::Error> { ... } fn flush(&self, open_option: &OpenOptions) -> Result<(), Self::Error> { ... } }
Available on non-target_family=wasm only.
Expand description

Note support write operation

Provided Methods§

Source

fn flush_content(&self, open_option: &OpenOptions) -> Result<(), Self::Error>

Flush only content

Ignore if path is None

Source

fn flush_properties(&self, open_option: &OpenOptions) -> Result<(), Self::Error>

Flush only content

Ignore if path is None

Source

fn flush(&self, open_option: &OpenOptions) -> Result<(), Self::Error>

Flush Note to Note::path

Ignore if path is None

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Note> NoteWrite for T
where T::Properties: Serialize, Self::Error: From<Error> + From<Error> + From<Error>,