pub struct RoomAst {
pub id: String,
pub name: String,
pub desc: String,
pub visited: bool,
pub exits: Vec<(String, ExitAst)>,
pub overlays: Vec<OverlayAst>,
pub src_line: usize,
}Expand description
Minimal AST for a room definition. AST node describing a compiled room definition.
Fields§
§id: String§name: String§desc: String§visited: bool§exits: Vec<(String, ExitAst)>§overlays: Vec<OverlayAst>§src_line: usizeTrait Implementations§
impl StructuralPartialEq for RoomAst
Auto Trait Implementations§
impl Freeze for RoomAst
impl RefUnwindSafe for RoomAst
impl Send for RoomAst
impl Sync for RoomAst
impl Unpin for RoomAst
impl UnwindSafe for RoomAst
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