pub struct SystemConfig {
pub version: String,
pub character_set_map: PetsciiConfig,
}Expand description
An individual system config Contains character set mappings
Fields§
§version: StringVersion of this system
character_set_map: PetsciiConfigcharacter_set_map contains the actual mapping from 8-bit characters to Unicode characters and vice-versa
Some “legacy computing” forbidden band crates like the Commodore (CBM) PETSCII crate also have intermediate maps and tables. In the case of CBM there is a set of “screen code” tables that hold information about the in-memory values of characters on the screen.
TODO: I want to get dynamic loading and unloading of modules working. It will require some refactoring with dyn traits and serialization / deserialization to make sure everything works.
Trait Implementations§
Source§impl Clone for SystemConfig
impl Clone for SystemConfig
Source§fn clone(&self) -> SystemConfig
fn clone(&self) -> SystemConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for SystemConfig
impl<'de> Deserialize<'de> for SystemConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SystemConfig
impl RefUnwindSafe for SystemConfig
impl Send for SystemConfig
impl Sync for SystemConfig
impl Unpin for SystemConfig
impl UnwindSafe for SystemConfig
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