pub struct MachineEntry {
pub id: &'static str,
pub key: &'static str,
pub default_config: &'static str,
pub i18n: &'static [(&'static str, &'static str)],
pub build: fn(&Config) -> Result<Box<dyn Machine>, ConfigError>,
pub suite_configs: fn() -> Vec<Config>,
}Expand description
One line of the registration list.
Fields§
§id: &'static str§key: &'static str§default_config: &'static str§i18n: &'static [(&'static str, &'static str)](language code, translation file contents)
build: fn(&Config) -> Result<Box<dyn Machine>, ConfigError>§suite_configs: fn() -> Vec<Config>Configs without friction and other losses, on which the standard suite checks energy.
Implementations§
Auto Trait Implementations§
impl Freeze for MachineEntry
impl RefUnwindSafe for MachineEntry
impl Send for MachineEntry
impl Sync for MachineEntry
impl Unpin for MachineEntry
impl UnsafeUnpin for MachineEntry
impl UnwindSafe for MachineEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more