pub struct SourceLine {
pub scene: String,
pub text: String,
pub kind: LineKind,
pub file: String,
}Expand description
One dialogue line or caption in English.
Fields§
§scene: StringThe id of its scene.
text: StringIts text as written (tokens unexpanded).
kind: LineKindWhat it is.
file: StringThe stem of the .dlg file its scene is in (ch01 for
ch01.dlg); empty if the dialogue wasn’t read from files.
Trait Implementations§
Source§impl Clone for SourceLine
impl Clone for SourceLine
Source§fn clone(&self) -> SourceLine
fn clone(&self) -> SourceLine
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 Debug for SourceLine
impl Debug for SourceLine
impl Eq for SourceLine
Source§impl PartialEq for SourceLine
impl PartialEq for SourceLine
impl StructuralPartialEq for SourceLine
Auto Trait Implementations§
impl Freeze for SourceLine
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnsafeUnpin for SourceLine
impl UnwindSafe for SourceLine
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