duat 0.10.1

A modern, very customizable text editor, configured in rust.
Documentation
// If you want, you can include the README as the description
//
// By running `cargo test --doc`, you will be able to test if the
// examples in this file work.
//
// #![doc = include_str!("README.md")]
use duat::prelude::*;

/// A plugin for ...
///
/// A longer description for this plugin is ...
#[derive(Default)]
pub struct PluginName(usize, bool);

impl PluginName {
    /// Sets the `usize` value for this [`Plugin`]
    pub fn set_usize(self, value: usize) -> Self {
        Self(value, self.1)
    }

    /// Sets the `bool` value for this [`Plugin`]
    pub fn set_bool(self, value: bool) -> Self {
        Self(self.0, value)
    }
}

impl duat::Plugin for PluginName {
    fn plug(self, opts: &mut Opts, plugins: &duat::Plugins) {
        // Plugin requirement example:
        // plugins.require::<SomeOtherPlugin>();

        // Further processing, like adding hooks, parsers, widgets,
        // etc. ...
    }
}