pub struct TomlParser {}
Expand description
TOML Blueprint Parser
This Parser
expects a properly formatted
Blueprint String
that follows:
Rush TOML DSL Specification
Example
[world]
name = "Sonic's World"
description = "This is Sonic's world"
regions = ["farm", "house"]
[entity]
player = { name = "String", x = "f64", y = "f64", w = "f64", h = "f64", speed = "f64" }
apple = { x = "f64", y = "f64"}
[farm]
player = [
{ name = "npc", x = 0.0, y = 0.0, w = 0.0, h = 0.0, speed = 0.0 }
]
apple = [
{ x = 0, y = 0}
]
[house]
player = [
{ name = "npc", x = 0.0, y = 0.0, w = 0.0, h = 0.0, speed = 0.0 }
]
Trait Implementations§
Source§impl Clone for TomlParser
impl Clone for TomlParser
Source§fn clone(&self) -> TomlParser
fn clone(&self) -> TomlParser
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 Debug for TomlParser
impl Debug for TomlParser
Source§impl Default for TomlParser
impl Default for TomlParser
Source§fn default() -> TomlParser
fn default() -> TomlParser
Returns the “default value” for a type. Read more
Source§impl Parser for TomlParser
impl Parser for TomlParser
Source§fn parse_string(&self, blueprint_string: BlueprintString) -> Result<Blueprint>
fn parse_string(&self, blueprint_string: BlueprintString) -> Result<Blueprint>
Auto Trait Implementations§
impl Freeze for TomlParser
impl RefUnwindSafe for TomlParser
impl Send for TomlParser
impl Sync for TomlParser
impl Unpin for TomlParser
impl UnwindSafe for TomlParser
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