bevy_mod_scripting_core 0.6.0

Core traits and structures required for other parts of bevy_mod_scripting
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::error::ScriptError;

/// A documentation piece exported by an `APIProvider`
pub trait DocFragment: 'static {
    fn merge(self, o: Self) -> Self;
    fn gen_docs(self) -> Result<(), ScriptError>;

    /// Retrieves the name of the documentation fragment, most likely the name of your game!
    fn name(&self) -> &'static str;
}