#[non_exhaustive]pub struct DialogueTable<D = NoDirective> {
pub scenes: BTreeMap<String, Scene<D>>,
pub files: BTreeMap<String, String>,
}Expand description
Every scene of every dialogue file, by id. Build it with
DialogueTable::new or Default (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scenes: BTreeMap<String, Scene<D>>Scenes by id.
files: BTreeMap<String, String>The file each scene was written in, by scene id (empty for a table not read from files).
Implementations§
Trait Implementations§
Source§impl<D: Clone> Clone for DialogueTable<D>
impl<D: Clone> Clone for DialogueTable<D>
Source§fn clone(&self) -> DialogueTable<D>
fn clone(&self) -> DialogueTable<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Debug> Debug for DialogueTable<D>
impl<D: Debug> Debug for DialogueTable<D>
Source§impl<D> Default for DialogueTable<D>
impl<D> Default for DialogueTable<D>
impl<D: Eq> Eq for DialogueTable<D>
Source§impl<D: PartialEq> PartialEq for DialogueTable<D>
impl<D: PartialEq> PartialEq for DialogueTable<D>
impl<D: PartialEq> StructuralPartialEq for DialogueTable<D>
Auto Trait Implementations§
impl<D> Freeze for DialogueTable<D>
impl<D> RefUnwindSafe for DialogueTable<D>where
D: RefUnwindSafe,
impl<D> Send for DialogueTable<D>where
D: Send,
impl<D> Sync for DialogueTable<D>where
D: Sync,
impl<D> Unpin for DialogueTable<D>
impl<D> UnsafeUnpin for DialogueTable<D>
impl<D> UnwindSafe for DialogueTable<D>where
D: RefUnwindSafe,
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